{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\hilar\Box\lights_2022\replication package\code\reg_mfx.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}24 Dec 2025, 16:49:58
{txt}
{com}. timer on 1
{txt}
{com}. 
. 
. ************************************
. *create program to generate value of xb+ue
. program calc_xb_ue
{txt}  1{com}. 
. *ue is avg value of the sum of cell fe + idiosyncratic error.
. predict ue, ue
{txt}  2{com}. summarize ue, meanonly
{txt}  3{com}. scalar uebar=r(mean)
{txt}  4{com}. 
. *xb needs to sum all continent*year betas times avg value of each continent*year value, plus same for temperature controls. Needs to be a scalar.
. *cont*yr effects
. 
. *generate means of continent FEs
. forvalues c=1/5 {c -(}
{txt}  5{com}. sum i`c'.continent, meanonly
{txt}  6{com}. sca cont`c'bar=r(mean) 
{txt}  7{com}. {c )-}
{txt}  8{com}. 
. * generate means of continentxyear FEs
. * for some reason, Stata excludes 2000 for Africa and 2011 for other continents so use Africa 2011 to start summation
. * fully balanced panel so average value for each yr dummy is 1/12
. gen contyr_atmeans=_b[1.continent#2011.year]*cont1bar*(1/12)
{txt}  9{com}. forvalues y=2000/2010 {c -(}
{txt} 10{com}.         forvalues c=1/5{c -(}
{txt} 11{com}.         replace contyr_atmeans=contyr_atmeans+ _b[`c'.continent#`y'.year]*cont`c'bar*(1/12)
{txt} 12{com}. {c )-}       
{txt} 13{com}. {c )-}
{txt} 14{com}. *contyr_atmeans is a same for all obs so just take first value 
. sca cy_atmeans=contyr_atmeans[1] 
{txt} 15{com}. 
. *cubic in temp dev
. sum dev_tmp, meanonly
{txt} 16{com}. sca dev_tmpbar=r(mean)
{txt} 17{com}. sca temp_atmeans = _b[dev_tmp]*dev_tmpbar + _b[c.dev_tmp#c.dev_tmp]*dev_tmpbar^2 + _b[c.dev_tmp#c.dev_tmp#c.dev_tmp]*dev_tmpbar^3
{txt} 18{com}. 
. 
. *then sum mean(ue)+scalar xb. Sum of constant, cont*yr effects, temp effects, cell FE, and error. (Everything but drought var.) This scalar will be what is in the parens after sinh in the denominator.
. sca contyr_temp_cons_ue=_b[_cons]+cy_atmeans+temp_atmeans+uebar
{txt} 19{com}. 
. *need to drop variables before next use
. drop ue contyr_atmeans
{txt} 20{com}. 
. end
{txt}
{com}. *end of program, now deploy for various models
. *********************************************************
. 
. use for_reg.dta, clear
{txt}
{com}. 
. egen cellid=group(x y)
{res}{txt}
{com}. xtset cellid year
{res}
{col 1}{txt:Panel variable: }{res:cellid}{txt: (unbalanced)}
{p 1 16 2}{txt:Time variable: }{res:year}{txt:, }{res:{bind:2000}}{txt: to }{res:{bind:2011}}{p_end}
{txt}{col 10}Delta: {res}1 unit
{txt}
{com}. 
. **# Table 1 in paper: binary drought coefficients with marginal effects
. foreach di in dsi pdsi {c -(}
{txt}  2{com}. if "`di'"=="dsi" {c -(}
{txt}  3{com}. local modeln "1"
{txt}  4{com}. {c )-}
{txt}  5{com}. else{c -(}
{txt}  6{com}. local modeln "2"        
{txt}  7{com}. {c )-}
{txt}  8{com}. 
. xtreg ihslights esm`di' c.dev_tmp##c.dev_tmp##c.dev_tmp i.continent#i.year if flare==0, fe vce(cluster conpfaf4) 
{txt}  9{com}. 
. quietly: calc_xb_ue
{txt} 10{com}. 
. collect get beta=(_b[esm`di']), tags(model[`modeln'] coeff[Drought])
{txt} 11{com}. collect get beta_se=(_se[esm`di']), tags(model[`modeln'] coeff[Drought])
{txt} 12{com}. collect, tag(model[`modeln'] coeff[Drought]): nlcom (sinh(_b[esm`di']+contyr_temp_cons_ue)/sinh(contyr_temp_cons_ue))-1
{txt} 13{com}. collect get gdp=(.3* ((sinh(_b[esm`di']+contyr_temp_cons_ue)/sinh(contyr_temp_cons_ue))-1)), tags(model[`modeln'] coeff[Drought])
{txt} 14{com}. 
. sca drop _all
{txt} 15{com}. {c )-}
{res}{txt}{p 0 6 2}note: {bf:2.continent#2007.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:5.continent#2006.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:4.continent#2010.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:6.continent#2000b.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:3.continent#2002.year} omitted because of collinearity with the absorbed variable.{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}   447,828
{txt}Group variable: {res}cellid{txt}{col 49}Number of groups{col 67}={col 69}{res}    37,319

{txt}R-squared:{col 49}Obs per group:
     Within  = {res}0.2188{col 63}{txt}min{col 67}={col 69}{res}        12
{txt}     Between = {res}0.0477{col 63}{txt}avg{col 67}={col 69}{res}      12.0
{txt}     Overall = {res}0.0236{col 63}{txt}max{col 67}={col 69}{res}        12

{txt}{col 49}F({res}70{txt}, {res}6127{txt}){col 67}={col 70}{res}    35.14
{txt}corr(u_i, Xb) = {res}-0.3007{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 95:(Std. err. adjusted for {res:6,128} clusters in {res:conpfaf4})}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                    ihslights{col 31}{c |} Coefficient{col 43}  std. err.{col 55}      t{col 63}   P>|t|{col 71}     [95% con{col 84}f. interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}esmdsi {c |}{col 31}{res}{space 2}-.0109721{col 43}{space 2}  .001611{col 54}{space 1}   -6.81{col 63}{space 3}0.000{col 71}{space 4}-.0141302{col 84}{space 3} -.007814
{txt}{space 22}dev_tmp {c |}{col 31}{res}{space 2}-.0116652{col 43}{space 2} .0021508{col 54}{space 1}   -5.42{col 63}{space 3}0.000{col 71}{space 4}-.0158815{col 84}{space 3}-.0074488
{txt}{space 29} {c |}
{space 10}c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0113976{col 43}{space 2} .0021589{col 54}{space 1}   -5.28{col 63}{space 3}0.000{col 71}{space 4}-.0156298{col 84}{space 3}-.0071655
{txt}{space 29} {c |}
c.dev_tmp#c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0037024{col 43}{space 2} .0016534{col 54}{space 1}   -2.24{col 63}{space 3}0.025{col 71}{space 4}-.0069438{col 84}{space 3}-.0004611
{txt}{space 29} {c |}
{space 15}continent#year {c |}
{space 21}AF#2001  {c |}{col 31}{res}{space 2} .0014386{col 43}{space 2} .0022862{col 54}{space 1}    0.63{col 63}{space 3}0.529{col 71}{space 4}-.0030433{col 84}{space 3} .0059204
{txt}{space 21}AF#2002  {c |}{col 31}{res}{space 2} .0180771{col 43}{space 2} .0027079{col 54}{space 1}    6.68{col 63}{space 3}0.000{col 71}{space 4} .0127687{col 84}{space 3} .0233854
{txt}{space 21}AF#2003  {c |}{col 31}{res}{space 2}-.0146885{col 43}{space 2}  .003134{col 54}{space 1}   -4.69{col 63}{space 3}0.000{col 71}{space 4}-.0208323{col 84}{space 3}-.0085448
{txt}{space 21}AF#2004  {c |}{col 31}{res}{space 2}-.0088611{col 43}{space 2} .0024726{col 54}{space 1}   -3.58{col 63}{space 3}0.000{col 71}{space 4}-.0137083{col 84}{space 3} -.004014
{txt}{space 21}AF#2005  {c |}{col 31}{res}{space 2} .0035988{col 43}{space 2} .0029945{col 54}{space 1}    1.20{col 63}{space 3}0.229{col 71}{space 4}-.0022716{col 84}{space 3} .0094691
{txt}{space 21}AF#2006  {c |}{col 31}{res}{space 2} .0065333{col 43}{space 2} .0036035{col 54}{space 1}    1.81{col 63}{space 3}0.070{col 71}{space 4}-.0005309{col 84}{space 3} .0135975
{txt}{space 21}AF#2007  {c |}{col 31}{res}{space 2} .0251734{col 43}{space 2} .0048532{col 54}{space 1}    5.19{col 63}{space 3}0.000{col 71}{space 4} .0156594{col 84}{space 3} .0346873
{txt}{space 21}AF#2008  {c |}{col 31}{res}{space 2}  .014686{col 43}{space 2}   .00372{col 54}{space 1}    3.95{col 63}{space 3}0.000{col 71}{space 4} .0073935{col 84}{space 3} .0219785
{txt}{space 21}AF#2009  {c |}{col 31}{res}{space 2} .0087039{col 43}{space 2} .0034855{col 54}{space 1}    2.50{col 63}{space 3}0.013{col 71}{space 4} .0018711{col 84}{space 3} .0155367
{txt}{space 21}AF#2010  {c |}{col 31}{res}{space 2} .0812546{col 43}{space 2} .0089522{col 54}{space 1}    9.08{col 63}{space 3}0.000{col 71}{space 4} .0637051{col 84}{space 3}  .098804
{txt}{space 21}AF#2011  {c |}{col 31}{res}{space 2} .0504818{col 43}{space 2} .0063074{col 54}{space 1}    8.00{col 63}{space 3}0.000{col 71}{space 4} .0381171{col 84}{space 3} .0628466
{txt}{space 21}AS#2000  {c |}{col 31}{res}{space 2}-.0748893{col 43}{space 2} .0066449{col 54}{space 1}  -11.27{col 63}{space 3}0.000{col 71}{space 4}-.0879155{col 84}{space 3} -.061863
{txt}{space 21}AS#2001  {c |}{col 31}{res}{space 2}-.0741084{col 43}{space 2} .0064972{col 54}{space 1}  -11.41{col 63}{space 3}0.000{col 71}{space 4}-.0868452{col 84}{space 3}-.0613715
{txt}{space 21}AS#2002  {c |}{col 31}{res}{space 2}-.0495461{col 43}{space 2} .0050162{col 54}{space 1}   -9.88{col 63}{space 3}0.000{col 71}{space 4}-.0593796{col 84}{space 3}-.0397127
{txt}{space 21}AS#2003  {c |}{col 31}{res}{space 2}-.1395942{col 43}{space 2} .0111019{col 54}{space 1}  -12.57{col 63}{space 3}0.000{col 71}{space 4}-.1613578{col 84}{space 3}-.1178306
{txt}{space 21}AS#2004  {c |}{col 31}{res}{space 2}-.1149448{col 43}{space 2}  .010232{col 54}{space 1}  -11.23{col 63}{space 3}0.000{col 71}{space 4}-.1350031{col 84}{space 3}-.0948866
{txt}{space 21}AS#2005  {c |}{col 31}{res}{space 2}-.0940895{col 43}{space 2} .0082872{col 54}{space 1}  -11.35{col 63}{space 3}0.000{col 71}{space 4}-.1103353{col 84}{space 3}-.0778436
{txt}{space 21}AS#2006  {c |}{col 31}{res}{space 2}-.0919699{col 43}{space 2} .0078961{col 54}{space 1}  -11.65{col 63}{space 3}0.000{col 71}{space 4}-.1074491{col 84}{space 3}-.0764907
{txt}{space 21}AS#2007  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}AS#2008  {c |}{col 31}{res}{space 2}-.0330314{col 43}{space 2} .0039782{col 54}{space 1}   -8.30{col 63}{space 3}0.000{col 71}{space 4}  -.04083{col 84}{space 3}-.0252328
{txt}{space 21}AS#2009  {c |}{col 31}{res}{space 2}-.0876713{col 43}{space 2} .0081556{col 54}{space 1}  -10.75{col 63}{space 3}0.000{col 71}{space 4}-.1036592{col 84}{space 3}-.0716834
{txt}{space 21}AS#2010  {c |}{col 31}{res}{space 2}  .068973{col 43}{space 2}  .008622{col 54}{space 1}    8.00{col 63}{space 3}0.000{col 71}{space 4} .0520708{col 84}{space 3} .0858752
{txt}{space 21}AS#2011  {c |}{col 31}{res}{space 2} .0217522{col 43}{space 2} .0055469{col 54}{space 1}    3.92{col 63}{space 3}0.000{col 71}{space 4} .0108783{col 84}{space 3} .0326262
{txt}{space 21}AU#2000  {c |}{col 31}{res}{space 2}-.0387041{col 43}{space 2} .0069425{col 54}{space 1}   -5.57{col 63}{space 3}0.000{col 71}{space 4}-.0523138{col 84}{space 3}-.0250943
{txt}{space 21}AU#2001  {c |}{col 31}{res}{space 2}-.0283963{col 43}{space 2} .0048734{col 54}{space 1}   -5.83{col 63}{space 3}0.000{col 71}{space 4}-.0379498{col 84}{space 3}-.0188428
{txt}{space 21}AU#2002  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}AU#2003  {c |}{col 31}{res}{space 2}-.0565671{col 43}{space 2} .0077867{col 54}{space 1}   -7.26{col 63}{space 3}0.000{col 71}{space 4}-.0718317{col 84}{space 3}-.0413025
{txt}{space 21}AU#2004  {c |}{col 31}{res}{space 2}-.0575877{col 43}{space 2} .0082587{col 54}{space 1}   -6.97{col 63}{space 3}0.000{col 71}{space 4}-.0737776{col 84}{space 3}-.0413978
{txt}{space 21}AU#2005  {c |}{col 31}{res}{space 2}-.0606618{col 43}{space 2}  .008648{col 54}{space 1}   -7.01{col 63}{space 3}0.000{col 71}{space 4}-.0776149{col 84}{space 3}-.0437086
{txt}{space 21}AU#2006  {c |}{col 31}{res}{space 2}-.0560631{col 43}{space 2} .0069746{col 54}{space 1}   -8.04{col 63}{space 3}0.000{col 71}{space 4}-.0697358{col 84}{space 3}-.0423903
{txt}{space 21}AU#2007  {c |}{col 31}{res}{space 2}-.0266011{col 43}{space 2} .0063038{col 54}{space 1}   -4.22{col 63}{space 3}0.000{col 71}{space 4}-.0389588{col 84}{space 3}-.0142433
{txt}{space 21}AU#2008  {c |}{col 31}{res}{space 2}-.0460093{col 43}{space 2} .0077825{col 54}{space 1}   -5.91{col 63}{space 3}0.000{col 71}{space 4}-.0612658{col 84}{space 3}-.0307529
{txt}{space 21}AU#2009  {c |}{col 31}{res}{space 2}-.0618358{col 43}{space 2} .0083154{col 54}{space 1}   -7.44{col 63}{space 3}0.000{col 71}{space 4}-.0781369{col 84}{space 3}-.0455346
{txt}{space 21}AU#2010  {c |}{col 31}{res}{space 2} .0529483{col 43}{space 2} .0150876{col 54}{space 1}    3.51{col 63}{space 3}0.000{col 71}{space 4} .0233714{col 84}{space 3} .0825252
{txt}{space 21}AU#2011  {c |}{col 31}{res}{space 2} .0156508{col 43}{space 2} .0072788{col 54}{space 1}    2.15{col 63}{space 3}0.032{col 71}{space 4} .0013819{col 84}{space 3} .0299198
{txt}{space 21}EU#2000  {c |}{col 31}{res}{space 2}-.2536573{col 43}{space 2} .0136097{col 54}{space 1}  -18.64{col 63}{space 3}0.000{col 71}{space 4}-.2803371{col 84}{space 3}-.2269775
{txt}{space 21}EU#2001  {c |}{col 31}{res}{space 2}-.2633701{col 43}{space 2} .0157381{col 54}{space 1}  -16.73{col 63}{space 3}0.000{col 71}{space 4}-.2942223{col 84}{space 3}-.2325179
{txt}{space 21}EU#2002  {c |}{col 31}{res}{space 2}-.2604113{col 43}{space 2} .0174772{col 54}{space 1}  -14.90{col 63}{space 3}0.000{col 71}{space 4}-.2946727{col 84}{space 3}-.2261499
{txt}{space 21}EU#2003  {c |}{col 31}{res}{space 2}-.4279559{col 43}{space 2} .0180495{col 54}{space 1}  -23.71{col 63}{space 3}0.000{col 71}{space 4}-.4633394{col 84}{space 3}-.3925725
{txt}{space 21}EU#2004  {c |}{col 31}{res}{space 2}-.3986974{col 43}{space 2} .0165839{col 54}{space 1}  -24.04{col 63}{space 3}0.000{col 71}{space 4}-.4312076{col 84}{space 3}-.3661871
{txt}{space 21}EU#2005  {c |}{col 31}{res}{space 2}-.3332992{col 43}{space 2} .0141753{col 54}{space 1}  -23.51{col 63}{space 3}0.000{col 71}{space 4}-.3610878{col 84}{space 3}-.3055106
{txt}{space 21}EU#2006  {c |}{col 31}{res}{space 2}-.4245282{col 43}{space 2} .0197703{col 54}{space 1}  -21.47{col 63}{space 3}0.000{col 71}{space 4}-.4632849{col 84}{space 3}-.3857715
{txt}{space 21}EU#2007  {c |}{col 31}{res}{space 2}-.2734136{col 43}{space 2} .0144873{col 54}{space 1}  -18.87{col 63}{space 3}0.000{col 71}{space 4}-.3018137{col 84}{space 3}-.2450134
{txt}{space 21}EU#2008  {c |}{col 31}{res}{space 2}-.2873754{col 43}{space 2}  .014298{col 54}{space 1}  -20.10{col 63}{space 3}0.000{col 71}{space 4}-.3154045{col 84}{space 3}-.2593462
{txt}{space 21}EU#2009  {c |}{col 31}{res}{space 2}-.3848787{col 43}{space 2} .0158518{col 54}{space 1}  -24.28{col 63}{space 3}0.000{col 71}{space 4}-.4159538{col 84}{space 3}-.3538036
{txt}{space 21}EU#2010  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}EU#2011  {c |}{col 31}{res}{space 2}-.1701466{col 43}{space 2} .0112215{col 54}{space 1}  -15.16{col 63}{space 3}0.000{col 71}{space 4}-.1921446{col 84}{space 3}-.1481485
{txt}{space 21}NA#2000  {c |}{col 31}{res}{space 2} .1401136{col 43}{space 2}  .007667{col 54}{space 1}   18.27{col 63}{space 3}0.000{col 71}{space 4} .1250836{col 84}{space 3} .1551436
{txt}{space 21}NA#2001  {c |}{col 31}{res}{space 2} .1247372{col 43}{space 2} .0073521{col 54}{space 1}   16.97{col 63}{space 3}0.000{col 71}{space 4} .1103245{col 84}{space 3} .1391499
{txt}{space 21}NA#2002  {c |}{col 31}{res}{space 2} .1192352{col 43}{space 2} .0070148{col 54}{space 1}   17.00{col 63}{space 3}0.000{col 71}{space 4} .1054838{col 84}{space 3} .1329866
{txt}{space 21}NA#2003  {c |}{col 31}{res}{space 2}-.0023049{col 43}{space 2} .0042132{col 54}{space 1}   -0.55{col 63}{space 3}0.584{col 71}{space 4}-.0105643{col 84}{space 3} .0059545
{txt}{space 21}NA#2004  {c |}{col 31}{res}{space 2} .0069482{col 43}{space 2} .0044067{col 54}{space 1}    1.58{col 63}{space 3}0.115{col 71}{space 4}-.0016904{col 84}{space 3} .0155868
{txt}{space 21}NA#2005  {c |}{col 31}{res}{space 2} .0405694{col 43}{space 2} .0046615{col 54}{space 1}    8.70{col 63}{space 3}0.000{col 71}{space 4} .0314312{col 84}{space 3} .0497077
{txt}{space 21}NA#2006  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}NA#2007  {c |}{col 31}{res}{space 2} .1056699{col 43}{space 2} .0056882{col 54}{space 1}   18.58{col 63}{space 3}0.000{col 71}{space 4} .0945191{col 84}{space 3} .1168207
{txt}{space 21}NA#2008  {c |}{col 31}{res}{space 2}  .092074{col 43}{space 2} .0060904{col 54}{space 1}   15.12{col 63}{space 3}0.000{col 71}{space 4} .0801347{col 84}{space 3} .1040133
{txt}{space 21}NA#2009  {c |}{col 31}{res}{space 2} .0137429{col 43}{space 2} .0049818{col 54}{space 1}    2.76{col 63}{space 3}0.006{col 71}{space 4} .0039768{col 84}{space 3} .0235091
{txt}{space 21}NA#2010  {c |}{col 31}{res}{space 2} .2180292{col 43}{space 2} .0095278{col 54}{space 1}   22.88{col 63}{space 3}0.000{col 71}{space 4} .1993512{col 84}{space 3} .2367071
{txt}{space 21}NA#2011  {c |}{col 31}{res}{space 2} .1150777{col 43}{space 2} .0064134{col 54}{space 1}   17.94{col 63}{space 3}0.000{col 71}{space 4} .1025053{col 84}{space 3} .1276501
{txt}{space 21}SA#2000  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}SA#2001  {c |}{col 31}{res}{space 2}-.0058442{col 43}{space 2} .0016586{col 54}{space 1}   -3.52{col 63}{space 3}0.000{col 71}{space 4}-.0090956{col 84}{space 3}-.0025928
{txt}{space 21}SA#2002  {c |}{col 31}{res}{space 2} .0087107{col 43}{space 2} .0017688{col 54}{space 1}    4.92{col 63}{space 3}0.000{col 71}{space 4} .0052431{col 84}{space 3} .0121782
{txt}{space 21}SA#2003  {c |}{col 31}{res}{space 2} -.027419{col 43}{space 2} .0049205{col 54}{space 1}   -5.57{col 63}{space 3}0.000{col 71}{space 4} -.037065{col 84}{space 3} -.017773
{txt}{space 21}SA#2004  {c |}{col 31}{res}{space 2}-.0233345{col 43}{space 2} .0047969{col 54}{space 1}   -4.86{col 63}{space 3}0.000{col 71}{space 4} -.032738{col 84}{space 3}-.0139309
{txt}{space 21}SA#2005  {c |}{col 31}{res}{space 2}-.0126452{col 43}{space 2}  .003729{col 54}{space 1}   -3.39{col 63}{space 3}0.001{col 71}{space 4}-.0199552{col 84}{space 3}-.0053351
{txt}{space 21}SA#2006  {c |}{col 31}{res}{space 2}-.0019824{col 43}{space 2} .0021708{col 54}{space 1}   -0.91{col 63}{space 3}0.361{col 71}{space 4} -.006238{col 84}{space 3} .0022732
{txt}{space 21}SA#2007  {c |}{col 31}{res}{space 2} .0147687{col 43}{space 2} .0022085{col 54}{space 1}    6.69{col 63}{space 3}0.000{col 71}{space 4} .0104392{col 84}{space 3} .0190981
{txt}{space 21}SA#2008  {c |}{col 31}{res}{space 2} .0131865{col 43}{space 2} .0021964{col 54}{space 1}    6.00{col 63}{space 3}0.000{col 71}{space 4} .0088807{col 84}{space 3} .0174923
{txt}{space 21}SA#2009  {c |}{col 31}{res}{space 2} .0077436{col 43}{space 2} .0022088{col 54}{space 1}    3.51{col 63}{space 3}0.000{col 71}{space 4} .0034137{col 84}{space 3} .0120736
{txt}{space 21}SA#2010  {c |}{col 31}{res}{space 2} .0851725{col 43}{space 2} .0107966{col 54}{space 1}    7.89{col 63}{space 3}0.000{col 71}{space 4} .0640074{col 84}{space 3} .1063377
{txt}{space 21}SA#2011  {c |}{col 31}{res}{space 2} .0596568{col 43}{space 2} .0079377{col 54}{space 1}    7.52{col 63}{space 3}0.000{col 71}{space 4} .0440961{col 84}{space 3} .0752176
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2} .6284176{col 43}{space 2} .0033019{col 54}{space 1}  190.32{col 63}{space 3}0.000{col 71}{space 4} .6219447{col 84}{space 3} .6348905
{txt}{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                      sigma_u {c |} {res} .93865548
                      {txt}sigma_e {c |} {res}  .1341393
                          {txt}rho {c |} {res} .97998665{txt}   (fraction of variance due to u_i)
{hline 30}{c BT}{hline 64}
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi]+contyr_temp_cons_ue)/sinh(contyr_temp_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0201797{col 26}{space 2} .0029542{col 37}{space 1}   -6.83{col 46}{space 3}0.000{col 54}{space 4}-.0259698{col 67}{space 3}-.0143897
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}{p 0 6 2}note: {bf:5.continent#2008.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:4.continent#2010.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2.continent#2010.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:6.continent#2009.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:3.continent#2008.year} omitted because of collinearity with the absorbed variable.{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}   421,236
{txt}Group variable: {res}cellid{txt}{col 49}Number of groups{col 67}={col 69}{res}    35,103

{txt}R-squared:{col 49}Obs per group:
     Within  = {res}0.2219{col 63}{txt}min{col 67}={col 69}{res}        12
{txt}     Between = {res}0.0705{col 63}{txt}avg{col 67}={col 69}{res}      12.0
{txt}     Overall = {res}0.0339{col 63}{txt}max{col 67}={col 69}{res}        12

{txt}{col 49}F({res}70{txt}, {res}6031{txt}){col 67}={col 70}{res}    35.44
{txt}corr(u_i, Xb) = {res}-0.3220{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 95:(Std. err. adjusted for {res:6,032} clusters in {res:conpfaf4})}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                    ihslights{col 31}{c |} Coefficient{col 43}  std. err.{col 55}      t{col 63}   P>|t|{col 71}     [95% con{col 84}f. interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 22}esmpdsi {c |}{col 31}{res}{space 2}-.0085466{col 43}{space 2} .0016382{col 54}{space 1}   -5.22{col 63}{space 3}0.000{col 71}{space 4}-.0117581{col 84}{space 3}-.0053352
{txt}{space 22}dev_tmp {c |}{col 31}{res}{space 2}-.0124701{col 43}{space 2}  .002181{col 54}{space 1}   -5.72{col 63}{space 3}0.000{col 71}{space 4}-.0167456{col 84}{space 3}-.0081946
{txt}{space 29} {c |}
{space 10}c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0125268{col 43}{space 2} .0020375{col 54}{space 1}   -6.15{col 63}{space 3}0.000{col 71}{space 4} -.016521{col 84}{space 3}-.0085327
{txt}{space 29} {c |}
c.dev_tmp#c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0032333{col 43}{space 2} .0015335{col 54}{space 1}   -2.11{col 63}{space 3}0.035{col 71}{space 4}-.0062395{col 84}{space 3}-.0002272
{txt}{space 29} {c |}
{space 15}continent#year {c |}
{space 21}AF#2001  {c |}{col 31}{res}{space 2} .0027521{col 43}{space 2} .0022747{col 54}{space 1}    1.21{col 63}{space 3}0.226{col 71}{space 4} -.001707{col 84}{space 3} .0072112
{txt}{space 21}AF#2002  {c |}{col 31}{res}{space 2} .0167479{col 43}{space 2} .0026935{col 54}{space 1}    6.22{col 63}{space 3}0.000{col 71}{space 4} .0114676{col 84}{space 3} .0220281
{txt}{space 21}AF#2003  {c |}{col 31}{res}{space 2}-.0103947{col 43}{space 2} .0027258{col 54}{space 1}   -3.81{col 63}{space 3}0.000{col 71}{space 4}-.0157382{col 84}{space 3}-.0050512
{txt}{space 21}AF#2004  {c |}{col 31}{res}{space 2}-.0043065{col 43}{space 2} .0021789{col 54}{space 1}   -1.98{col 63}{space 3}0.048{col 71}{space 4}-.0085779{col 84}{space 3}-.0000351
{txt}{space 21}AF#2005  {c |}{col 31}{res}{space 2} .0066132{col 43}{space 2}   .00276{col 54}{space 1}    2.40{col 63}{space 3}0.017{col 71}{space 4} .0012026{col 84}{space 3} .0120238
{txt}{space 21}AF#2006  {c |}{col 31}{res}{space 2} .0093026{col 43}{space 2} .0035514{col 54}{space 1}    2.62{col 63}{space 3}0.009{col 71}{space 4} .0023407{col 84}{space 3} .0162646
{txt}{space 21}AF#2007  {c |}{col 31}{res}{space 2} .0250438{col 43}{space 2} .0048407{col 54}{space 1}    5.17{col 63}{space 3}0.000{col 71}{space 4} .0155543{col 84}{space 3} .0345333
{txt}{space 21}AF#2008  {c |}{col 31}{res}{space 2} .0147169{col 43}{space 2} .0034963{col 54}{space 1}    4.21{col 63}{space 3}0.000{col 71}{space 4} .0078628{col 84}{space 3}  .021571
{txt}{space 21}AF#2009  {c |}{col 31}{res}{space 2} .0108885{col 43}{space 2} .0031727{col 54}{space 1}    3.43{col 63}{space 3}0.001{col 71}{space 4} .0046689{col 84}{space 3}  .017108
{txt}{space 21}AF#2010  {c |}{col 31}{res}{space 2} .0751224{col 43}{space 2} .0090604{col 54}{space 1}    8.29{col 63}{space 3}0.000{col 71}{space 4} .0573608{col 84}{space 3} .0928841
{txt}{space 21}AF#2011  {c |}{col 31}{res}{space 2} .0475325{col 43}{space 2} .0063924{col 54}{space 1}    7.44{col 63}{space 3}0.000{col 71}{space 4} .0350011{col 84}{space 3}  .060064
{txt}{space 21}AS#2000  {c |}{col 31}{res}{space 2}-.1418099{col 43}{space 2}  .011789{col 54}{space 1}  -12.03{col 63}{space 3}0.000{col 71}{space 4}-.1649206{col 84}{space 3}-.1186992
{txt}{space 21}AS#2001  {c |}{col 31}{res}{space 2} -.141789{col 43}{space 2} .0119795{col 54}{space 1}  -11.84{col 63}{space 3}0.000{col 71}{space 4} -.165273{col 84}{space 3}-.1183049
{txt}{space 21}AS#2002  {c |}{col 31}{res}{space 2}-.1168207{col 43}{space 2} .0103066{col 54}{space 1}  -11.33{col 63}{space 3}0.000{col 71}{space 4}-.1370254{col 84}{space 3} -.096616
{txt}{space 21}AS#2003  {c |}{col 31}{res}{space 2}-.2049465{col 43}{space 2}  .018085{col 54}{space 1}  -11.33{col 63}{space 3}0.000{col 71}{space 4}-.2403997{col 84}{space 3}-.1694934
{txt}{space 21}AS#2004  {c |}{col 31}{res}{space 2}-.1796709{col 43}{space 2} .0170075{col 54}{space 1}  -10.56{col 63}{space 3}0.000{col 71}{space 4}-.2130116{col 84}{space 3}-.1463301
{txt}{space 21}AS#2005  {c |}{col 31}{res}{space 2}-.1588178{col 43}{space 2} .0149304{col 54}{space 1}  -10.64{col 63}{space 3}0.000{col 71}{space 4}-.1880868{col 84}{space 3}-.1295489
{txt}{space 21}AS#2006  {c |}{col 31}{res}{space 2}-.1569739{col 43}{space 2} .0146642{col 54}{space 1}  -10.70{col 63}{space 3}0.000{col 71}{space 4} -.185721{col 84}{space 3}-.1282268
{txt}{space 21}AS#2007  {c |}{col 31}{res}{space 2}-.0654301{col 43}{space 2} .0084102{col 54}{space 1}   -7.78{col 63}{space 3}0.000{col 71}{space 4}-.0819171{col 84}{space 3}-.0489431
{txt}{space 21}AS#2008  {c |}{col 31}{res}{space 2}-.0997601{col 43}{space 2} .0100608{col 54}{space 1}   -9.92{col 63}{space 3}0.000{col 71}{space 4}-.1194828{col 84}{space 3}-.0800373
{txt}{space 21}AS#2009  {c |}{col 31}{res}{space 2}-.1533626{col 43}{space 2} .0141063{col 54}{space 1}  -10.87{col 63}{space 3}0.000{col 71}{space 4} -.181016{col 84}{space 3}-.1257091
{txt}{space 21}AS#2010  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}AS#2011  {c |}{col 31}{res}{space 2}-.0477578{col 43}{space 2} .0062498{col 54}{space 1}   -7.64{col 63}{space 3}0.000{col 71}{space 4}-.0600097{col 84}{space 3} -.035506
{txt}{space 21}AU#2000  {c |}{col 31}{res}{space 2} .0007969{col 43}{space 2} .0055029{col 54}{space 1}    0.14{col 63}{space 3}0.885{col 71}{space 4}-.0099907{col 84}{space 3} .0115845
{txt}{space 21}AU#2001  {c |}{col 31}{res}{space 2} .0082088{col 43}{space 2} .0054038{col 54}{space 1}    1.52{col 63}{space 3}0.129{col 71}{space 4}-.0023846{col 84}{space 3} .0188022
{txt}{space 21}AU#2002  {c |}{col 31}{res}{space 2} .0323355{col 43}{space 2} .0068403{col 54}{space 1}    4.73{col 63}{space 3}0.000{col 71}{space 4} .0189261{col 84}{space 3}  .045745
{txt}{space 21}AU#2003  {c |}{col 31}{res}{space 2}-.0171051{col 43}{space 2} .0068457{col 54}{space 1}   -2.50{col 63}{space 3}0.012{col 71}{space 4}-.0305251{col 84}{space 3}-.0036851
{txt}{space 21}AU#2004  {c |}{col 31}{res}{space 2}-.0183158{col 43}{space 2} .0072032{col 54}{space 1}   -2.54{col 63}{space 3}0.011{col 71}{space 4}-.0324367{col 84}{space 3} -.004195
{txt}{space 21}AU#2005  {c |}{col 31}{res}{space 2}-.0210853{col 43}{space 2} .0076298{col 54}{space 1}   -2.76{col 63}{space 3}0.006{col 71}{space 4}-.0360425{col 84}{space 3}-.0061281
{txt}{space 21}AU#2006  {c |}{col 31}{res}{space 2} -.014797{col 43}{space 2} .0056756{col 54}{space 1}   -2.61{col 63}{space 3}0.009{col 71}{space 4}-.0259232{col 84}{space 3}-.0036708
{txt}{space 21}AU#2007  {c |}{col 31}{res}{space 2} .0163055{col 43}{space 2} .0050868{col 54}{space 1}    3.21{col 63}{space 3}0.001{col 71}{space 4} .0063336{col 84}{space 3} .0262774
{txt}{space 21}AU#2008  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}AU#2009  {c |}{col 31}{res}{space 2}-.0194772{col 43}{space 2} .0071834{col 54}{space 1}   -2.71{col 63}{space 3}0.007{col 71}{space 4}-.0335593{col 84}{space 3}-.0053951
{txt}{space 21}AU#2010  {c |}{col 31}{res}{space 2} .0984181{col 43}{space 2} .0140686{col 54}{space 1}    7.00{col 63}{space 3}0.000{col 71}{space 4} .0708386{col 84}{space 3} .1259976
{txt}{space 21}AU#2011  {c |}{col 31}{res}{space 2} .0600444{col 43}{space 2} .0079072{col 54}{space 1}    7.59{col 63}{space 3}0.000{col 71}{space 4} .0445434{col 84}{space 3} .0755455
{txt}{space 21}EU#2000  {c |}{col 31}{res}{space 2}-.2487083{col 43}{space 2} .0136803{col 54}{space 1}  -18.18{col 63}{space 3}0.000{col 71}{space 4}-.2755265{col 84}{space 3}  -.22189
{txt}{space 21}EU#2001  {c |}{col 31}{res}{space 2}-.2593206{col 43}{space 2} .0155015{col 54}{space 1}  -16.73{col 63}{space 3}0.000{col 71}{space 4}-.2897091{col 84}{space 3}-.2289321
{txt}{space 21}EU#2002  {c |}{col 31}{res}{space 2}-.2581894{col 43}{space 2}  .016759{col 54}{space 1}  -15.41{col 63}{space 3}0.000{col 71}{space 4}-.2910431{col 84}{space 3}-.2253357
{txt}{space 21}EU#2003  {c |}{col 31}{res}{space 2}-.4252679{col 43}{space 2} .0175408{col 54}{space 1}  -24.24{col 63}{space 3}0.000{col 71}{space 4}-.4596542{col 84}{space 3}-.3908816
{txt}{space 21}EU#2004  {c |}{col 31}{res}{space 2}-.3950477{col 43}{space 2} .0161674{col 54}{space 1}  -24.43{col 63}{space 3}0.000{col 71}{space 4}-.4267417{col 84}{space 3}-.3633538
{txt}{space 21}EU#2005  {c |}{col 31}{res}{space 2}-.3291891{col 43}{space 2} .0138264{col 54}{space 1}  -23.81{col 63}{space 3}0.000{col 71}{space 4}-.3562937{col 84}{space 3}-.3020845
{txt}{space 21}EU#2006  {c |}{col 31}{res}{space 2} -.425234{col 43}{space 2} .0191155{col 54}{space 1}  -22.25{col 63}{space 3}0.000{col 71}{space 4}-.4627072{col 84}{space 3}-.3877608
{txt}{space 21}EU#2007  {c |}{col 31}{res}{space 2}-.2737656{col 43}{space 2} .0140375{col 54}{space 1}  -19.50{col 63}{space 3}0.000{col 71}{space 4}-.3012841{col 84}{space 3}-.2462471
{txt}{space 21}EU#2008  {c |}{col 31}{res}{space 2}-.2883772{col 43}{space 2} .0139878{col 54}{space 1}  -20.62{col 63}{space 3}0.000{col 71}{space 4}-.3157984{col 84}{space 3}-.2609561
{txt}{space 21}EU#2009  {c |}{col 31}{res}{space 2}-.3830926{col 43}{space 2} .0155304{col 54}{space 1}  -24.67{col 63}{space 3}0.000{col 71}{space 4}-.4135378{col 84}{space 3}-.3526474
{txt}{space 21}EU#2010  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}EU#2011  {c |}{col 31}{res}{space 2}-.1669922{col 43}{space 2} .0110546{col 54}{space 1}  -15.11{col 63}{space 3}0.000{col 71}{space 4}-.1886632{col 84}{space 3}-.1453211
{txt}{space 21}NA#2000  {c |}{col 31}{res}{space 2} .0477464{col 43}{space 2}  .004741{col 54}{space 1}   10.07{col 63}{space 3}0.000{col 71}{space 4} .0384524{col 84}{space 3} .0570404
{txt}{space 21}NA#2001  {c |}{col 31}{res}{space 2} .0317946{col 43}{space 2} .0039668{col 54}{space 1}    8.02{col 63}{space 3}0.000{col 71}{space 4} .0240182{col 84}{space 3}  .039571
{txt}{space 21}NA#2002  {c |}{col 31}{res}{space 2} .0241195{col 43}{space 2} .0044026{col 54}{space 1}    5.48{col 63}{space 3}0.000{col 71}{space 4} .0154889{col 84}{space 3} .0327502
{txt}{space 21}NA#2003  {c |}{col 31}{res}{space 2}-.0948678{col 43}{space 2}  .004803{col 54}{space 1}  -19.75{col 63}{space 3}0.000{col 71}{space 4}-.1042833{col 84}{space 3}-.0854523
{txt}{space 21}NA#2004  {c |}{col 31}{res}{space 2}-.0861214{col 43}{space 2} .0042843{col 54}{space 1}  -20.10{col 63}{space 3}0.000{col 71}{space 4}-.0945203{col 84}{space 3}-.0777226
{txt}{space 21}NA#2005  {c |}{col 31}{res}{space 2}-.0515806{col 43}{space 2} .0040222{col 54}{space 1}  -12.82{col 63}{space 3}0.000{col 71}{space 4}-.0594656{col 84}{space 3}-.0436955
{txt}{space 21}NA#2006  {c |}{col 31}{res}{space 2}-.0942816{col 43}{space 2} .0060978{col 54}{space 1}  -15.46{col 63}{space 3}0.000{col 71}{space 4}-.1062354{col 84}{space 3}-.0823277
{txt}{space 21}NA#2007  {c |}{col 31}{res}{space 2}  .011878{col 43}{space 2} .0029593{col 54}{space 1}    4.01{col 63}{space 3}0.000{col 71}{space 4} .0060767{col 84}{space 3} .0176793
{txt}{space 21}NA#2008  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}NA#2009  {c |}{col 31}{res}{space 2}-.0796637{col 43}{space 2} .0039893{col 54}{space 1}  -19.97{col 63}{space 3}0.000{col 71}{space 4}-.0874842{col 84}{space 3}-.0718432
{txt}{space 21}NA#2010  {c |}{col 31}{res}{space 2} .1243149{col 43}{space 2} .0061794{col 54}{space 1}   20.12{col 63}{space 3}0.000{col 71}{space 4}  .112201{col 84}{space 3} .1364289
{txt}{space 21}NA#2011  {c |}{col 31}{res}{space 2} .0196326{col 43}{space 2} .0040307{col 54}{space 1}    4.87{col 63}{space 3}0.000{col 71}{space 4} .0117309{col 84}{space 3} .0275343
{txt}{space 21}SA#2000  {c |}{col 31}{res}{space 2}-.0074968{col 43}{space 2} .0020851{col 54}{space 1}   -3.60{col 63}{space 3}0.000{col 71}{space 4}-.0115843{col 84}{space 3}-.0034092
{txt}{space 21}SA#2001  {c |}{col 31}{res}{space 2}-.0137035{col 43}{space 2} .0022877{col 54}{space 1}   -5.99{col 63}{space 3}0.000{col 71}{space 4}-.0181882{col 84}{space 3}-.0092189
{txt}{space 21}SA#2002  {c |}{col 31}{res}{space 2} .0006942{col 43}{space 2} .0015749{col 54}{space 1}    0.44{col 63}{space 3}0.659{col 71}{space 4}-.0023931{col 84}{space 3} .0037816
{txt}{space 21}SA#2003  {c |}{col 31}{res}{space 2}-.0327737{col 43}{space 2} .0049034{col 54}{space 1}   -6.68{col 63}{space 3}0.000{col 71}{space 4} -.042386{col 84}{space 3}-.0231614
{txt}{space 21}SA#2004  {c |}{col 31}{res}{space 2}-.0286633{col 43}{space 2} .0046151{col 54}{space 1}   -6.21{col 63}{space 3}0.000{col 71}{space 4}-.0377105{col 84}{space 3} -.019616
{txt}{space 21}SA#2005  {c |}{col 31}{res}{space 2}-.0195541{col 43}{space 2} .0037081{col 54}{space 1}   -5.27{col 63}{space 3}0.000{col 71}{space 4}-.0268234{col 84}{space 3}-.0122848
{txt}{space 21}SA#2006  {c |}{col 31}{res}{space 2}-.0079107{col 43}{space 2} .0018798{col 54}{space 1}   -4.21{col 63}{space 3}0.000{col 71}{space 4}-.0115958{col 84}{space 3}-.0042256
{txt}{space 21}SA#2007  {c |}{col 31}{res}{space 2} .0071804{col 43}{space 2} .0018618{col 54}{space 1}    3.86{col 63}{space 3}0.000{col 71}{space 4} .0035305{col 84}{space 3} .0108302
{txt}{space 21}SA#2008  {c |}{col 31}{res}{space 2} .0059324{col 43}{space 2} .0018538{col 54}{space 1}    3.20{col 63}{space 3}0.001{col 71}{space 4} .0022983{col 84}{space 3} .0095665
{txt}{space 21}SA#2009  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}SA#2010  {c |}{col 31}{res}{space 2}  .073746{col 43}{space 2} .0104205{col 54}{space 1}    7.08{col 63}{space 3}0.000{col 71}{space 4} .0533181{col 84}{space 3}  .094174
{txt}{space 21}SA#2011  {c |}{col 31}{res}{space 2} .0503523{col 43}{space 2} .0071769{col 54}{space 1}    7.02{col 63}{space 3}0.000{col 71}{space 4}  .036283{col 84}{space 3} .0644216
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2} .6408648{col 43}{space 2} .0042861{col 54}{space 1}  149.52{col 63}{space 3}0.000{col 71}{space 4} .6324626{col 84}{space 3}  .649267
{txt}{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                      sigma_u {c |} {res} .90825842
                      {txt}sigma_e {c |} {res} .13166149
                          {txt}rho {c |} {res} .97941897{txt}   (fraction of variance due to u_i)
{hline 30}{c BT}{hline 64}
{res}
       {txt}_nl_1: {res}(sinh(_b[esmpdsi]+contyr_temp_cons_ue)/sinh(contyr_temp_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0161434{col 26}{space 2} .0030874{col 37}{space 1}   -5.23{col 46}{space 3}0.000{col 54}{space 4}-.0221947{col 67}{space 3}-.0100921
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. 
. collect label levels result gdp "Predicted effect on GDP"
{res}{txt}
{com}. collect label levels model 1 "DSI" 2 "sc-PDSI", modify
{res}{txt}
{com}. collect label levels result _r_b "Marginal effect", modify
{res}{txt}
{com}. collect label levels result beta "Coefficient on moderate or worse drought", modify
{res}{txt}
{com}. collect label levels result beta_se "", modify
{res}{txt}
{com}. collect style cell result[_r_b], nformat(%6.4f) 
{res}{txt}
{com}. collect style cell result[_r_se], sformat((%s)) nformat(%6.4f) 
{res}{txt}
{com}. collect style cell result[beta], nformat(%6.4f) 
{res}{txt}
{com}. collect style cell result[beta_se], sformat((%s)) nformat(%6.4f) 
{res}{txt}
{com}. collect style cell result[gdp], nformat(%6.4f)  
{res}{txt}
{com}. collect stars _r_p 0.01 "**" 0.05 "*" 0.1 "+", attach(_r_b)
{res}{txt}
{com}. collect layout (result[beta beta_se] result[_r_b _r_se] result[gdp]) (model)
{res}
{txt}{p 0 12 2}
Collection: {res:default}
{p_end}
{p 0 12 2}
{space 6}Rows: {res:result[beta beta_se] result[_r_b _r_se] result[gdp]}
{p_end}
{p 0 12 2}
{space 3}Columns: {res:model}
{p_end}
{p 0 12 2}
{space 3}Table 1: {res:5 x 2}
{p_end}

{res}{smcl}
{reset}{...}
{hline 40}{c -}{c TT}{c -}{hline 9}{c -}{hline 9}
{space 40} {c |} {space 6}DSI {space 2}sc-PDSI
{hline 40}{c -}{c +}{c -}{hline 9}{c -}{hline 9}
Coefficient on moderate or worse drought {c |} {space 2}{result:-0.0110} {space 2}{result:-0.0085}
beta_se{space 33} {c |} {space 1}{result:(0.0016)} {space 1}{result:(0.0016)}
Marginal effect{space 25} {c |} {result:-0.0202**} {result:-0.0161**}
Std. error{space 30} {c |} {space 1}{result:(0.0030)} {space 1}{result:(0.0031)}
Predicted effect on GDP{space 17} {c |} {space 2}{result:-0.0061} {space 2}{result:-0.0048}
{hline 40}{c -}{c BT}{c -}{hline 9}{c -}{hline 9}

{com}. collect style putdocx, layout(autofitcontents) title(Binary drought effects) 
{res}{txt}
{com}. 
. putdocx begin
{res}{txt}
{com}. putdocx collect
{res}{txt}{p 0 1 2}
(collection {res:default} posted to {bf:putdocx})
{p_end}

{com}. 
. putdocx save "../output/table1.docx", replace
{res}successfully replaced {browse "C:/Users/hilar/Box/lights_2022/replication package/output/table1.docx":"C:/Users/hilar/Box/lights_2022/replication package/output/table1.docx"}
{txt}
{com}. 
. 
. 
. **# Mfx for Table 2 (GW), column 2 model 
. 
. 
. gen alluv=(aqtyp_max=="Major Alluvial")
{txt}
{com}. gen loc_shal=(aqtyp_max=="Local/Shallow")
{txt}
{com}. gen complex=(aqtyp_max=="Complex")
{txt}
{com}. gen karst=(aqtyp_max=="Karst")
{txt}
{com}. 
. label var alluv "Major alluvial"
{txt}
{com}. label var loc_shal "Local/shallow"
{txt}
{com}. label var complex "Complex"
{txt}
{com}. label var karst "Karst"
{txt}
{com}. 
. 
. *interactions with drought
. foreach var in alluv loc_shal complex karst  {c -(}
{txt}  2{com}.   local lbl: variable label `var'
{txt}  3{com}.   gen esmdsi_`var'=esmdsi*`var'
{txt}  4{com}.    label var esmdsi_`var' "`lbl'*drought"
{txt}  5{com}.  {c )-}      
{txt}(17,431 missing values generated)
(17,431 missing values generated)
(17,431 missing values generated)
(17,431 missing values generated)

{com}. 
. xtreg ihslights esmdsi esmdsi_alluv esmdsi_loc_shal esmdsi_complex c.dev_tmp##c.dev_tmp##c.dev_tmp i.continent#i.year if flare==0 & !missing(aqtyp_max), fe vce(cluster conpfaf4)
{res}{txt}{p 0 6 2}note: {bf:4.continent#2010.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2.continent#2010.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:5.continent#2008.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:6.continent#2000b.year} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:3.continent#2008.year} omitted because of collinearity with the absorbed variable.{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}   446,568
{txt}Group variable: {res}cellid{txt}{col 49}Number of groups{col 67}={col 69}{res}    37,214

{txt}R-squared:{col 49}Obs per group:
     Within  = {res}0.2191{col 63}{txt}min{col 67}={col 69}{res}        12
{txt}     Between = {res}0.0674{col 63}{txt}avg{col 67}={col 69}{res}      12.0
{txt}     Overall = {res}0.0330{col 63}{txt}max{col 67}={col 69}{res}        12

{txt}{col 49}F({res}73{txt}, {res}6127{txt}){col 67}={col 70}{res}    33.65
{txt}corr(u_i, Xb) = {res}-0.3179{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 95:(Std. err. adjusted for {res:6,128} clusters in {res:conpfaf4})}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                    ihslights{col 31}{c |} Coefficient{col 43}  std. err.{col 55}      t{col 63}   P>|t|{col 71}     [95% con{col 84}f. interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}esmdsi {c |}{col 31}{res}{space 2} -.013162{col 43}{space 2} .0033677{col 54}{space 1}   -3.91{col 63}{space 3}0.000{col 71}{space 4}-.0197639{col 84}{space 3}-.0065601
{txt}{space 17}esmdsi_alluv {c |}{col 31}{res}{space 2} .0114991{col 43}{space 2} .0050073{col 54}{space 1}    2.30{col 63}{space 3}0.022{col 71}{space 4} .0016831{col 84}{space 3} .0213151
{txt}{space 14}esmdsi_loc_shal {c |}{col 31}{res}{space 2} .0011273{col 43}{space 2} .0036944{col 54}{space 1}    0.31{col 63}{space 3}0.760{col 71}{space 4} -.006115{col 84}{space 3} .0083697
{txt}{space 15}esmdsi_complex {c |}{col 31}{res}{space 2}  .001539{col 43}{space 2} .0041837{col 54}{space 1}    0.37{col 63}{space 3}0.713{col 71}{space 4}-.0066626{col 84}{space 3} .0097406
{txt}{space 22}dev_tmp {c |}{col 31}{res}{space 2} -.011588{col 43}{space 2} .0021522{col 54}{space 1}   -5.38{col 63}{space 3}0.000{col 71}{space 4}-.0158069{col 84}{space 3} -.007369
{txt}{space 29} {c |}
{space 10}c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0114159{col 43}{space 2} .0021628{col 54}{space 1}   -5.28{col 63}{space 3}0.000{col 71}{space 4}-.0156557{col 84}{space 3}-.0071761
{txt}{space 29} {c |}
c.dev_tmp#c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0037251{col 43}{space 2} .0016585{col 54}{space 1}   -2.25{col 63}{space 3}0.025{col 71}{space 4}-.0069763{col 84}{space 3}-.0004739
{txt}{space 29} {c |}
{space 15}continent#year {c |}
{space 21}AF#2001  {c |}{col 31}{res}{space 2} .0014525{col 43}{space 2} .0022719{col 54}{space 1}    0.64{col 63}{space 3}0.523{col 71}{space 4}-.0030011{col 84}{space 3} .0059062
{txt}{space 21}AF#2002  {c |}{col 31}{res}{space 2} .0178318{col 43}{space 2} .0027281{col 54}{space 1}    6.54{col 63}{space 3}0.000{col 71}{space 4} .0124839{col 84}{space 3} .0231798
{txt}{space 21}AF#2003  {c |}{col 31}{res}{space 2}-.0148958{col 43}{space 2} .0029853{col 54}{space 1}   -4.99{col 63}{space 3}0.000{col 71}{space 4} -.020748{col 84}{space 3}-.0090436
{txt}{space 21}AF#2004  {c |}{col 31}{res}{space 2}-.0088776{col 43}{space 2} .0024704{col 54}{space 1}   -3.59{col 63}{space 3}0.000{col 71}{space 4}-.0137204{col 84}{space 3}-.0040348
{txt}{space 21}AF#2005  {c |}{col 31}{res}{space 2} .0034347{col 43}{space 2} .0029616{col 54}{space 1}    1.16{col 63}{space 3}0.246{col 71}{space 4}-.0023711{col 84}{space 3} .0092405
{txt}{space 21}AF#2006  {c |}{col 31}{res}{space 2} .0065532{col 43}{space 2} .0036262{col 54}{space 1}    1.81{col 63}{space 3}0.071{col 71}{space 4}-.0005555{col 84}{space 3} .0136619
{txt}{space 21}AF#2007  {c |}{col 31}{res}{space 2} .0250402{col 43}{space 2}  .004888{col 54}{space 1}    5.12{col 63}{space 3}0.000{col 71}{space 4} .0154581{col 84}{space 3} .0346224
{txt}{space 21}AF#2008  {c |}{col 31}{res}{space 2}  .014763{col 43}{space 2} .0037311{col 54}{space 1}    3.96{col 63}{space 3}0.000{col 71}{space 4} .0074487{col 84}{space 3} .0220774
{txt}{space 21}AF#2009  {c |}{col 31}{res}{space 2} .0087761{col 43}{space 2} .0034919{col 54}{space 1}    2.51{col 63}{space 3}0.012{col 71}{space 4} .0019308{col 84}{space 3} .0156214
{txt}{space 21}AF#2010  {c |}{col 31}{res}{space 2} .0814039{col 43}{space 2} .0089696{col 54}{space 1}    9.08{col 63}{space 3}0.000{col 71}{space 4} .0638203{col 84}{space 3} .0989875
{txt}{space 21}AF#2011  {c |}{col 31}{res}{space 2} .0504393{col 43}{space 2} .0063238{col 54}{space 1}    7.98{col 63}{space 3}0.000{col 71}{space 4} .0380425{col 84}{space 3} .0628362
{txt}{space 21}AS#2000  {c |}{col 31}{res}{space 2}-.1439998{col 43}{space 2} .0118232{col 54}{space 1}  -12.18{col 63}{space 3}0.000{col 71}{space 4}-.1671774{col 84}{space 3}-.1208222
{txt}{space 21}AS#2001  {c |}{col 31}{res}{space 2}-.1430079{col 43}{space 2} .0119623{col 54}{space 1}  -11.95{col 63}{space 3}0.000{col 71}{space 4}-.1664582{col 84}{space 3}-.1195576
{txt}{space 21}AS#2002  {c |}{col 31}{res}{space 2}-.1186961{col 43}{space 2} .0103074{col 54}{space 1}  -11.52{col 63}{space 3}0.000{col 71}{space 4}-.1389023{col 84}{space 3}-.0984899
{txt}{space 21}AS#2003  {c |}{col 31}{res}{space 2}-.2084086{col 43}{space 2} .0181481{col 54}{space 1}  -11.48{col 63}{space 3}0.000{col 71}{space 4}-.2439853{col 84}{space 3}-.1728319
{txt}{space 21}AS#2004  {c |}{col 31}{res}{space 2}-.1838565{col 43}{space 2} .0171961{col 54}{space 1}  -10.69{col 63}{space 3}0.000{col 71}{space 4}-.2175668{col 84}{space 3}-.1501462
{txt}{space 21}AS#2005  {c |}{col 31}{res}{space 2}-.1630036{col 43}{space 2} .0151426{col 54}{space 1}  -10.76{col 63}{space 3}0.000{col 71}{space 4}-.1926884{col 84}{space 3}-.1333187
{txt}{space 21}AS#2006  {c |}{col 31}{res}{space 2}-.1608509{col 43}{space 2} .0146704{col 54}{space 1}  -10.96{col 63}{space 3}0.000{col 71}{space 4}  -.18961{col 84}{space 3}-.1320918
{txt}{space 21}AS#2007  {c |}{col 31}{res}{space 2} -.068871{col 43}{space 2}  .008614{col 54}{space 1}   -8.00{col 63}{space 3}0.000{col 71}{space 4}-.0857574{col 84}{space 3}-.0519845
{txt}{space 21}AS#2008  {c |}{col 31}{res}{space 2}-.1018425{col 43}{space 2} .0102574{col 54}{space 1}   -9.93{col 63}{space 3}0.000{col 71}{space 4}-.1219505{col 84}{space 3}-.0817344
{txt}{space 21}AS#2009  {c |}{col 31}{res}{space 2}-.1565485{col 43}{space 2} .0144219{col 54}{space 1}  -10.85{col 63}{space 3}0.000{col 71}{space 4}-.1848205{col 84}{space 3}-.1282766
{txt}{space 21}AS#2010  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}AS#2011  {c |}{col 31}{res}{space 2}-.0470328{col 43}{space 2} .0065069{col 54}{space 1}   -7.23{col 63}{space 3}0.000{col 71}{space 4}-.0597886{col 84}{space 3}-.0342769
{txt}{space 21}AU#2000  {c |}{col 31}{res}{space 2} .0051087{col 43}{space 2}  .005405{col 54}{space 1}    0.95{col 63}{space 3}0.345{col 71}{space 4} -.005487{col 84}{space 3} .0157044
{txt}{space 21}AU#2001  {c |}{col 31}{res}{space 2} .0148475{col 43}{space 2} .0064607{col 54}{space 1}    2.30{col 63}{space 3}0.022{col 71}{space 4} .0021823{col 84}{space 3} .0275127
{txt}{space 21}AU#2002  {c |}{col 31}{res}{space 2} .0423491{col 43}{space 2} .0081027{col 54}{space 1}    5.23{col 63}{space 3}0.000{col 71}{space 4}  .026465{col 84}{space 3} .0582332
{txt}{space 21}AU#2003  {c |}{col 31}{res}{space 2}-.0112971{col 43}{space 2} .0066625{col 54}{space 1}   -1.70{col 63}{space 3}0.090{col 71}{space 4}-.0243579{col 84}{space 3} .0017637
{txt}{space 21}AU#2004  {c |}{col 31}{res}{space 2}-.0114948{col 43}{space 2} .0066079{col 54}{space 1}   -1.74{col 63}{space 3}0.082{col 71}{space 4}-.0244487{col 84}{space 3}  .001459
{txt}{space 21}AU#2005  {c |}{col 31}{res}{space 2}-.0144671{col 43}{space 2}  .006168{col 54}{space 1}   -2.35{col 63}{space 3}0.019{col 71}{space 4}-.0265585{col 84}{space 3}-.0023757
{txt}{space 21}AU#2006  {c |}{col 31}{res}{space 2}-.0092246{col 43}{space 2} .0074897{col 54}{space 1}   -1.23{col 63}{space 3}0.218{col 71}{space 4} -.023907{col 84}{space 3} .0054579
{txt}{space 21}AU#2007  {c |}{col 31}{res}{space 2} .0182582{col 43}{space 2}  .005575{col 54}{space 1}    3.28{col 63}{space 3}0.001{col 71}{space 4} .0073292{col 84}{space 3} .0291871
{txt}{space 21}AU#2008  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}AU#2009  {c |}{col 31}{res}{space 2}-.0150721{col 43}{space 2}  .007639{col 54}{space 1}   -1.97{col 63}{space 3}0.049{col 71}{space 4}-.0300473{col 84}{space 3}-.0000969
{txt}{space 21}AU#2010  {c |}{col 31}{res}{space 2} .0970944{col 43}{space 2} .0156977{col 54}{space 1}    6.19{col 63}{space 3}0.000{col 71}{space 4} .0663213{col 84}{space 3} .1278675
{txt}{space 21}AU#2011  {c |}{col 31}{res}{space 2} .0618351{col 43}{space 2} .0080558{col 54}{space 1}    7.68{col 63}{space 3}0.000{col 71}{space 4}  .046043{col 84}{space 3} .0776273
{txt}{space 21}EU#2000  {c |}{col 31}{res}{space 2}-.2540681{col 43}{space 2} .0136431{col 54}{space 1}  -18.62{col 63}{space 3}0.000{col 71}{space 4}-.2808134{col 84}{space 3}-.2273227
{txt}{space 21}EU#2001  {c |}{col 31}{res}{space 2}-.2638544{col 43}{space 2} .0158024{col 54}{space 1}  -16.70{col 63}{space 3}0.000{col 71}{space 4}-.2948326{col 84}{space 3}-.2328762
{txt}{space 21}EU#2002  {c |}{col 31}{res}{space 2}-.2608703{col 43}{space 2} .0174757{col 54}{space 1}  -14.93{col 63}{space 3}0.000{col 71}{space 4}-.2951288{col 84}{space 3}-.2266119
{txt}{space 21}EU#2003  {c |}{col 31}{res}{space 2}-.4285764{col 43}{space 2} .0181367{col 54}{space 1}  -23.63{col 63}{space 3}0.000{col 71}{space 4}-.4641308{col 84}{space 3} -.393022
{txt}{space 21}EU#2004  {c |}{col 31}{res}{space 2}-.3991591{col 43}{space 2} .0166674{col 54}{space 1}  -23.95{col 63}{space 3}0.000{col 71}{space 4} -.431833{col 84}{space 3}-.3664851
{txt}{space 21}EU#2005  {c |}{col 31}{res}{space 2}-.3336967{col 43}{space 2} .0142119{col 54}{space 1}  -23.48{col 63}{space 3}0.000{col 71}{space 4} -.361557{col 84}{space 3}-.3058363
{txt}{space 21}EU#2006  {c |}{col 31}{res}{space 2}-.4251134{col 43}{space 2} .0198273{col 54}{space 1}  -21.44{col 63}{space 3}0.000{col 71}{space 4} -.463982{col 84}{space 3}-.3862449
{txt}{space 21}EU#2007  {c |}{col 31}{res}{space 2}-.2738853{col 43}{space 2}  .014459{col 54}{space 1}  -18.94{col 63}{space 3}0.000{col 71}{space 4}-.3022299{col 84}{space 3}-.2455407
{txt}{space 21}EU#2008  {c |}{col 31}{res}{space 2}-.2876747{col 43}{space 2} .0142811{col 54}{space 1}  -20.14{col 63}{space 3}0.000{col 71}{space 4}-.3156706{col 84}{space 3}-.2596788
{txt}{space 21}EU#2009  {c |}{col 31}{res}{space 2}-.3850685{col 43}{space 2} .0158709{col 54}{space 1}  -24.26{col 63}{space 3}0.000{col 71}{space 4}-.4161811{col 84}{space 3}-.3539559
{txt}{space 21}EU#2010  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}EU#2011  {c |}{col 31}{res}{space 2}-.1705222{col 43}{space 2} .0112682{col 54}{space 1}  -15.13{col 63}{space 3}0.000{col 71}{space 4}-.1926118{col 84}{space 3}-.1484325
{txt}{space 21}NA#2000  {c |}{col 31}{res}{space 2} .0480397{col 43}{space 2} .0048268{col 54}{space 1}    9.95{col 63}{space 3}0.000{col 71}{space 4} .0385775{col 84}{space 3} .0575019
{txt}{space 21}NA#2001  {c |}{col 31}{res}{space 2} .0326403{col 43}{space 2} .0042696{col 54}{space 1}    7.64{col 63}{space 3}0.000{col 71}{space 4} .0242705{col 84}{space 3} .0410102
{txt}{space 21}NA#2002  {c |}{col 31}{res}{space 2} .0271337{col 43}{space 2} .0045938{col 54}{space 1}    5.91{col 63}{space 3}0.000{col 71}{space 4} .0181284{col 84}{space 3} .0361391
{txt}{space 21}NA#2003  {c |}{col 31}{res}{space 2}-.0943713{col 43}{space 2} .0048131{col 54}{space 1}  -19.61{col 63}{space 3}0.000{col 71}{space 4}-.1038066{col 84}{space 3} -.084936
{txt}{space 21}NA#2004  {c |}{col 31}{res}{space 2}-.0851387{col 43}{space 2} .0043563{col 54}{space 1}  -19.54{col 63}{space 3}0.000{col 71}{space 4}-.0936786{col 84}{space 3}-.0765989
{txt}{space 21}NA#2005  {c |}{col 31}{res}{space 2}-.0514711{col 43}{space 2} .0039592{col 54}{space 1}  -13.00{col 63}{space 3}0.000{col 71}{space 4}-.0592326{col 84}{space 3}-.0437096
{txt}{space 21}NA#2006  {c |}{col 31}{res}{space 2}-.0921864{col 43}{space 2} .0060935{col 54}{space 1}  -15.13{col 63}{space 3}0.000{col 71}{space 4}-.1041318{col 84}{space 3} -.080241
{txt}{space 21}NA#2007  {c |}{col 31}{res}{space 2} .0135555{col 43}{space 2} .0030705{col 54}{space 1}    4.41{col 63}{space 3}0.000{col 71}{space 4} .0075362{col 84}{space 3} .0195748
{txt}{space 21}NA#2008  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}NA#2009  {c |}{col 31}{res}{space 2}-.0783582{col 43}{space 2} .0039953{col 54}{space 1}  -19.61{col 63}{space 3}0.000{col 71}{space 4}-.0861904{col 84}{space 3}-.0705261
{txt}{space 21}NA#2010  {c |}{col 31}{res}{space 2} .1260105{col 43}{space 2} .0067714{col 54}{space 1}   18.61{col 63}{space 3}0.000{col 71}{space 4} .1127361{col 84}{space 3} .1392849
{txt}{space 21}NA#2011  {c |}{col 31}{res}{space 2} .0229012{col 43}{space 2} .0043703{col 54}{space 1}    5.24{col 63}{space 3}0.000{col 71}{space 4}  .014334{col 84}{space 3} .0314685
{txt}{space 21}SA#2000  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}SA#2001  {c |}{col 31}{res}{space 2}-.0059249{col 43}{space 2}  .001674{col 54}{space 1}   -3.54{col 63}{space 3}0.000{col 71}{space 4}-.0092066{col 84}{space 3}-.0026433
{txt}{space 21}SA#2002  {c |}{col 31}{res}{space 2} .0085841{col 43}{space 2} .0017583{col 54}{space 1}    4.88{col 63}{space 3}0.000{col 71}{space 4} .0051372{col 84}{space 3}  .012031
{txt}{space 21}SA#2003  {c |}{col 31}{res}{space 2}-.0273466{col 43}{space 2} .0049334{col 54}{space 1}   -5.54{col 63}{space 3}0.000{col 71}{space 4}-.0370177{col 84}{space 3}-.0176754
{txt}{space 21}SA#2004  {c |}{col 31}{res}{space 2}-.0233066{col 43}{space 2} .0047762{col 54}{space 1}   -4.88{col 63}{space 3}0.000{col 71}{space 4}-.0326696{col 84}{space 3}-.0139436
{txt}{space 21}SA#2005  {c |}{col 31}{res}{space 2}-.0124963{col 43}{space 2} .0037281{col 54}{space 1}   -3.35{col 63}{space 3}0.001{col 71}{space 4}-.0198046{col 84}{space 3} -.005188
{txt}{space 21}SA#2006  {c |}{col 31}{res}{space 2}-.0019373{col 43}{space 2} .0021819{col 54}{space 1}   -0.89{col 63}{space 3}0.375{col 71}{space 4}-.0062146{col 84}{space 3} .0023401
{txt}{space 21}SA#2007  {c |}{col 31}{res}{space 2} .0150688{col 43}{space 2} .0022228{col 54}{space 1}    6.78{col 63}{space 3}0.000{col 71}{space 4} .0107113{col 84}{space 3} .0194263
{txt}{space 21}SA#2008  {c |}{col 31}{res}{space 2} .0133151{col 43}{space 2} .0021924{col 54}{space 1}    6.07{col 63}{space 3}0.000{col 71}{space 4} .0090173{col 84}{space 3}  .017613
{txt}{space 21}SA#2009  {c |}{col 31}{res}{space 2} .0077267{col 43}{space 2} .0021979{col 54}{space 1}    3.52{col 63}{space 3}0.000{col 71}{space 4} .0034181{col 84}{space 3} .0120354
{txt}{space 21}SA#2010  {c |}{col 31}{res}{space 2} .0853032{col 43}{space 2} .0108235{col 54}{space 1}    7.88{col 63}{space 3}0.000{col 71}{space 4} .0640854{col 84}{space 3} .1065211
{txt}{space 21}SA#2011  {c |}{col 31}{res}{space 2} .0598744{col 43}{space 2} .0079478{col 54}{space 1}    7.53{col 63}{space 3}0.000{col 71}{space 4} .0442939{col 84}{space 3} .0754549
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2} .6636453{col 43}{space 2} .0042601{col 54}{space 1}  155.78{col 63}{space 3}0.000{col 71}{space 4}  .655294{col 84}{space 3} .6719966
{txt}{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                      sigma_u {c |} {res} .93775893
                      {txt}sigma_e {c |} {res} .13409238
                          {txt}rho {c |} {res} .97996288{txt}   (fraction of variance due to u_i)
{hline 30}{c BT}{hline 64}

{com}. 
. quietly: calc_xb_ue
{txt}
{com}. 
. *groundwater-drought interactions means
. foreach type in alluv loc_shal complex {c -(}
{txt}  2{com}. sum esmdsi_`type', meanonly
{txt}  3{com}. sca esmdsi_`type'bar=r(mean)
{txt}  4{com}. {c )-}
{txt}
{com}. sum esmdsi, meanonly
{txt}
{com}. sca esmdsibar=r(mean)
{txt}
{com}. 
. *FIRST COEFF (esmdsi)
. sca gw_intx = _b[esmdsi_alluv]*esmdsi_alluvbar + _b[esmdsi_loc_shal]*esmdsi_loc_shalbar + _b[esmdsi_complex]*esmdsi_complexbar
{txt}
{com}. 
. sca contyr_temp_gwintx_cons_ue=gw_intx+contyr_temp_cons_ue
{txt}
{com}. 
. di "Table 2, column 2 model"
{res}Table 2, column 2 model
{txt}
{com}. di "For comparison _b[esmdsi] is " _b[esmdsi]
{res}For comparison _b[esmdsi] is -.01316203
{txt}
{com}. collect get beta=(_b[esmdsi]), tags(model[4] coeff[Drought])
{res}{txt}
{com}. collect, tag(model[4] coeff[Drought]): nlcom (sinh(_b[esmdsi]+contyr_temp_gwintx_cons_ue)/sinh(contyr_temp_gwintx_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi]+contyr_temp_gwintx_cons_ue)/sinh(contyr_temp_gwintx_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0240722{col 26}{space 2} .0061374{col 37}{space 1}   -3.92{col 46}{space 3}0.000{col 54}{space 4}-.0361014{col 67}{space 3} -.012043
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi]+contyr_temp_gwintx_cons_ue)/sinh(contyr_temp_gwintx_cons_ue))-1)), tag(model[4] coeff[Drought])
{res}{txt}
{com}. 
. *SECOND COEFF (esmdsi*alluv)
. 
. sca gw_vars = _b[esmdsi]*esmdsibar + _b[esmdsi_loc_shal]*esmdsi_loc_shalbar + _b[esmdsi_complex]*esmdsi_complexbar
{txt}
{com}. 
. sca contyr_temp_gwvars_cons_ue=gw_vars+contyr_temp_cons_ue
{txt}
{com}. 
. di "Table 2, column 2 model"
{res}Table 2, column 2 model
{txt}
{com}. di "For comparison _b[esmdsi_alluv] is " _b[esmdsi_alluv]
{res}For comparison _b[esmdsi_alluv] is .01149908
{txt}
{com}. collect get beta=(_b[esmdsi_alluv]), tags(model[4] coeff[Drought*alluv])
{res}{txt}
{com}. collect, tag(model[4] coeff[Drought*alluv]): nlcom (sinh(_b[esmdsi_alluv]+contyr_temp_gwvars_cons_ue)/sinh(contyr_temp_gwvars_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi_alluv]+contyr_temp_gwvars_cons_ue)/sinh(contyr_temp_gwvars_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0212323{col 26}{space 2} .0092748{col 37}{space 1}    2.29{col 46}{space 3}0.022{col 54}{space 4}  .003054{col 67}{space 3} .0394106
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi_alluv]+contyr_temp_gwvars_cons_ue)/sinh(contyr_temp_gwvars_cons_ue))-1)), tag(model[4] coeff[Drought*alluv])
{res}{txt}
{com}. 
. sca drop _all
{txt}
{com}. 
. **# Table 4, column 1 model 
. 
. * characteristics for interactions
. gen nonhydro=((count_dams-count_hydro)>0)
{txt}
{com}. replace rescap=rescap/10^3
{txt}(225,237 real changes made)

{com}. replace rescaphydro=rescaphydro/10^3
{txt}(113,516 real changes made)

{com}. gen up1_nonhydro=((up1_count_dams-up1_count_hydro)>0)
{txt}
{com}. gen farupdam=((upstream_dams-up1_count_dams)>0)
{txt}
{com}. gen pop=pop2000/10^3
{txt}(40,860 missing values generated)

{com}. 
. label var nonhydro "Non-hydro dam"
{txt}
{com}. label var farupdam "Far upstream dam"
{txt}
{com}. label var pop "Population density"
{txt}
{com}. label var up1_nonhydro "Near upstream non-hydro"
{txt}
{com}. 
. *explicit interactions for cleaner output
. foreach var in ifdam ifhydro nonhydro pop cti rescap rescaphydro up1_ifdam up1_ifhydro up1_nonhydro farupdam {c -(}
{txt}  2{com}.         local lbl: variable label `var'
{txt}  3{com}. *extreme/severe/moderate
.         gen esmdsi_`var'=(dsi_cat11<=3)*`var'
{txt}  4{com}.         label var esmdsi_`var' "`lbl'*drought"
{txt}  5{com}.         {c )-}
{txt}(40,860 missing values generated)
(40,860 missing values generated)
(40,860 missing values generated)
(40,860 missing values generated)
(40,860 missing values generated)
(40,860 missing values generated)
(428,845 missing values generated)
(428,845 missing values generated)

{com}. 
. 
. quietly: xtreg ihslights esmdsi esmdsi_ifdam c.dev_tmp##c.dev_tmp##c.dev_tmp i.year#i.continent if flare==0, fe vce(cluster conpfaf4)
{txt}
{com}. 
. quietly: calc_xb_ue
{txt}
{com}. 
. *dam-drought interaction means
. sum esmdsi_ifdam, meanonly
{txt}
{com}. sca esmdsi_ifdambar=r(mean)
{txt}
{com}. sum esmdsi, meanonly
{txt}
{com}. sca esmdsibar=r(mean)
{txt}
{com}. 
. 
. *FIRST COEFF (esmdsi)
. *then sum mean(ue)+scalar xb. Sum of constant, cont*yr effects, temp effects, cell FE, and error. (Everything but drought var.) This scalar will be what is in the parens after sinh in the denominator.
. 
. sca dam_intx = _b[esmdsi_ifdam]*esmdsi_ifdambar
{txt}
{com}. sca contyr_temp_damintx_cons_ue=dam_intx+contyr_temp_cons_ue
{txt}
{com}. 
. *then do nlcom (sinh(scalarxb+ue as number + b_esmdsi)/sinh(scalar xb+ue as number)) - 1
. 
. di "*Table 4, column 1 model "
{res}*Table 4, column 1 model 
{txt}
{com}. di "for comparison _b[esmdsi] is" _b[esmdsi]
{res}for comparison _b[esmdsi] is-.01525887
{txt}
{com}. collect get beta=(_b[esmdsi]), tags(model[5] coeff[Drought])
{res}{txt}
{com}. collect, tag(model[5] coeff[Drought]): nlcom (sinh(_b[esmdsi]+contyr_temp_damintx_cons_ue)/sinh(contyr_temp_damintx_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi]+contyr_temp_damintx_cons_ue)/sinh(contyr_temp_damintx_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0279509{col 26}{space 2} .0034911{col 37}{space 1}   -8.01{col 46}{space 3}0.000{col 54}{space 4}-.0347934{col 67}{space 3}-.0211084
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi]+contyr_temp_damintx_cons_ue)/sinh(contyr_temp_damintx_cons_ue))-1)), tag(model[5] coeff[Drought])
{res}{txt}
{com}. 
. *SECOND COEFF (esmdsi*ifdam)
. sca drought_var = _b[esmdsi]*esmdsibar
{txt}
{com}. sca contyr_temp_droughtvar_cons_ue=drought_var+contyr_temp_cons_ue
{txt}
{com}. 
. di "*Table 4, column 1 model: dam interaction "
{res}*Table 4, column 1 model: dam interaction 
{txt}
{com}. di "for comparison _b[esmdsi_ifdam] is" _b[esmdsi_ifdam]
{res}for comparison _b[esmdsi_ifdam] is.00928942
{txt}
{com}. collect get beta=(_b[esmdsi_ifdam]), tags(model[5] coeff[Drought*dam])
{res}{txt}
{com}. collect, tag(model[5] coeff[Drought*dam]): nlcom (sinh(_b[esmdsi_ifdam]+contyr_temp_droughtvar_cons_ue)/sinh(contyr_temp_droughtvar_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi_ifdam]+contyr_temp_droughtvar_cons_ue)/sinh(contyr_temp_droughtvar_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0171953{col 26}{space 2} .0060937{col 37}{space 1}    2.82{col 46}{space 3}0.005{col 54}{space 4} .0052518{col 67}{space 3} .0291387
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi_ifdam]+contyr_temp_droughtvar_cons_ue)/sinh(contyr_temp_droughtvar_cons_ue))-1)), tag(model[5] coeff[Drought*dam])
{res}{txt}
{com}. 
. sca drop _all
{txt}
{com}. 
. 
. **# mfx for Table 4, column 2 model (hydro interaction)
. 
. quietly: xtreg ihslights esmdsi esmdsi_ifdam esmdsi_ifhydro c.dev_tmp##c.dev_tmp##c.dev_tmp i.year#i.continent if flare==0, fe vce(cluster conpfaf4)
{txt}
{com}. 
. quietly: calc_xb_ue
{txt}
{com}. 
. *dam-drought interactions
. foreach v in ifdam ifhydro {c -(}
{txt}  2{com}. sum esmdsi_`v', meanonly
{txt}  3{com}. sca esmdsi_`v'bar=r(mean)
{txt}  4{com}. {c )-}
{txt}
{com}. sum esmdsi, meanonly
{txt}
{com}. sca esmdsibar=r(mean)
{txt}
{com}. 
. *FIRST COEFF (esmdsi)
. sca dam_intx = _b[esmdsi_ifdam]*esmdsi_ifdambar + _b[esmdsi_ifhydro]*esmdsi_ifhydrobar
{txt}
{com}. 
. sca contyr_temp_damintx_cons_ue=dam_intx+contyr_temp_cons_ue
{txt}
{com}. 
. 
. di "*Table 4, column 2 model"
{res}*Table 4, column 2 model
{txt}
{com}. di "for comparison _b[esmdsi] is" _b[esmdsi]
{res}for comparison _b[esmdsi] is-.0152356
{txt}
{com}. collect get beta=(_b[esmdsi]), tags(model[6] coeff[Drought])
{res}{txt}
{com}. collect, tag(model[6] coeff[Drought]): nlcom (sinh(_b[esmdsi]+contyr_temp_damintx_cons_ue)/sinh(contyr_temp_damintx_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi]+contyr_temp_damintx_cons_ue)/sinh(contyr_temp_damintx_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} -.027698{col 26}{space 2} .0034587{col 37}{space 1}   -8.01{col 46}{space 3}0.000{col 54}{space 4} -.034477{col 67}{space 3}-.0209191
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi]+contyr_temp_damintx_cons_ue)/sinh(contyr_temp_damintx_cons_ue))-1)), tag(model[6] coeff[Drought])
{res}{txt}
{com}. 
. *SECOND COEFF (esmdsi*ifdam)
. 
. sca drought_hydro = _b[esmdsi]*esmdsibar + _b[esmdsi_ifhydro]*esmdsi_ifhydrobar
{txt}
{com}. sca contyr_temp_droughthydro_cons_ue=drought_hydro+contyr_temp_cons_ue
{txt}
{com}. 
. 
. di "*Table 4, column 2 model: dam interaction "
{res}*Table 4, column 2 model: dam interaction 
{txt}
{com}. di "for comparison _b[esmdsi_ifdam] is" _b[esmdsi_ifdam]
{res}for comparison _b[esmdsi_ifdam] is.01788622
{txt}
{com}. collect get beta=(_b[esmdsi_ifdam]), tags(model[6] coeff[Drought*dam])
{res}{txt}
{com}. collect, tag(model[6] coeff[Drought*dam]): nlcom (sinh(_b[esmdsi_ifdam]+contyr_temp_droughthydro_cons_ue)/sinh(contyr_temp_droughthydro_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi_ifdam]+contyr_temp_droughthydro_cons_ue)/sinh(contyr_temp_droughthydro_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  .032961{col 26}{space 2} .0078009{col 37}{space 1}    4.23{col 46}{space 3}0.000{col 54}{space 4} .0176715{col 67}{space 3} .0482505
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi_ifdam]+contyr_temp_droughthydro_cons_ue)/sinh(contyr_temp_droughthydro_cons_ue))-1)), tag(model[6] coeff[Drought*dam])
{res}{txt}
{com}. 
. 
. *THIRD COEFF (esmdsi*ifhydro)
. 
. sca drought_dam = _b[esmdsi]*esmdsibar + _b[esmdsi_ifdam]*esmdsi_ifdambar
{txt}
{com}. sca contyr_temp_droughtdam_cons_ue=drought_dam+contyr_temp_cons_ue
{txt}
{com}. 
. di "*Table 4, column 2 model: hydro interaction "
{res}*Table 4, column 2 model: hydro interaction 
{txt}
{com}. di "for comparison _b[esmdsi_ifhydro] is" _b[esmdsi_ifhydro]
{res}for comparison _b[esmdsi_ifhydro] is-.01746426
{txt}
{com}. collect get beta=(_b[esmdsi_ifhydro]), tags(model[6] coeff[Hydro*drought])
{res}{txt}
{com}. collect, tag(model[6] coeff[Hydro*drought]):  nlcom (sinh(_b[esmdsi_ifhydro]+contyr_temp_droughtdam_cons_ue)/sinh(contyr_temp_droughtdam_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi_ifhydro]+contyr_temp_droughtdam_cons_ue)/sinh(contyr_temp_droughtdam_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0318024{col 26}{space 2}  .010034{col 37}{space 1}   -3.17{col 46}{space 3}0.002{col 54}{space 4}-.0514687{col 67}{space 3}-.0121362
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi_ifhydro]+contyr_temp_droughtdam_cons_ue)/sinh(contyr_temp_droughtdam_cons_ue))-1)), tag(model[6] coeff[Hydro*drought])
{res}{txt}
{com}. 
. **# Table 4, column 3 model 
. xtreg ihslights esmdsi esmdsi_ifdam esmdsi_ifhydro esmdsi_pop c.dev_tmp##c.dev_tmp##c.dev_tmp i.year#i.continent if flare==0, fe vce(cluster conpfaf4)
{res}{txt}{p 0 6 2}note: {bf:2007.year#2.continent} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2008.year#5.continent} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2010.year#6.continent} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2004.year#4.continent} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2002.year#3.continent} omitted because of collinearity with the absorbed variable.{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}   447,828
{txt}Group variable: {res}cellid{txt}{col 49}Number of groups{col 67}={col 69}{res}    37,319

{txt}R-squared:{col 49}Obs per group:
     Within  = {res}0.2191{col 63}{txt}min{col 67}={col 69}{res}        12
{txt}     Between = {res}0.0859{col 63}{txt}avg{col 67}={col 69}{res}      12.0
{txt}     Overall = {res}0.0637{col 63}{txt}max{col 67}={col 69}{res}        12

{txt}{col 49}F({res}73{txt}, {res}6127{txt}){col 67}={col 70}{res}    33.78
{txt}corr(u_i, Xb) = {res}0.1552{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 95:(Std. err. adjusted for {res:6,128} clusters in {res:conpfaf4})}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                    ihslights{col 31}{c |} Coefficient{col 43}  std. err.{col 55}      t{col 63}   P>|t|{col 71}     [95% con{col 84}f. interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}esmdsi {c |}{col 31}{res}{space 2}-.0163206{col 43}{space 2} .0020013{col 54}{space 1}   -8.15{col 63}{space 3}0.000{col 71}{space 4}-.0202439{col 84}{space 3}-.0123973
{txt}{space 17}esmdsi_ifdam {c |}{col 31}{res}{space 2} .0165681{col 43}{space 2} .0040101{col 54}{space 1}    4.13{col 63}{space 3}0.000{col 71}{space 4}  .008707{col 84}{space 3} .0244292
{txt}{space 15}esmdsi_ifhydro {c |}{col 31}{res}{space 2}-.0171751{col 43}{space 2} .0054773{col 54}{space 1}   -3.14{col 63}{space 3}0.002{col 71}{space 4}-.0279126{col 84}{space 3}-.0064376
{txt}{space 19}esmdsi_pop {c |}{col 31}{res}{space 2} .0248704{col 43}{space 2}  .012672{col 54}{space 1}    1.96{col 63}{space 3}0.050{col 71}{space 4} .0000287{col 84}{space 3}  .049712
{txt}{space 22}dev_tmp {c |}{col 31}{res}{space 2}-.0116503{col 43}{space 2} .0021511{col 54}{space 1}   -5.42{col 63}{space 3}0.000{col 71}{space 4}-.0158673{col 84}{space 3}-.0074334
{txt}{space 29} {c |}
{space 10}c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0114351{col 43}{space 2} .0021569{col 54}{space 1}   -5.30{col 63}{space 3}0.000{col 71}{space 4}-.0156633{col 84}{space 3}-.0072069
{txt}{space 29} {c |}
c.dev_tmp#c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0036877{col 43}{space 2} .0016509{col 54}{space 1}   -2.23{col 63}{space 3}0.026{col 71}{space 4} -.006924{col 84}{space 3}-.0004513
{txt}{space 29} {c |}
{space 15}year#continent {c |}
{space 21}2000#AS  {c |}{col 31}{res}{space 2} -.075516{col 43}{space 2} .0066577{col 54}{space 1}  -11.34{col 63}{space 3}0.000{col 71}{space 4}-.0885673{col 84}{space 3}-.0624646
{txt}{space 21}2000#AU  {c |}{col 31}{res}{space 2} -.037407{col 43}{space 2} .0064707{col 54}{space 1}   -5.78{col 63}{space 3}0.000{col 71}{space 4}-.0500919{col 84}{space 3}-.0247221
{txt}{space 21}2000#EU  {c |}{col 31}{res}{space 2}   .14528{col 43}{space 2} .0091254{col 54}{space 1}   15.92{col 63}{space 3}0.000{col 71}{space 4} .1273911{col 84}{space 3}  .163169
{txt}{space 21}2000#NA  {c |}{col 31}{res}{space 2} .0477443{col 43}{space 2} .0048253{col 54}{space 1}    9.89{col 63}{space 3}0.000{col 71}{space 4} .0382849{col 84}{space 3} .0572036
{txt}{space 21}2000#SA  {c |}{col 31}{res}{space 2}-.0843886{col 43}{space 2} .0110545{col 54}{space 1}   -7.63{col 63}{space 3}0.000{col 71}{space 4}-.1060592{col 84}{space 3} -.062718
{txt}{space 21}2001#AF  {c |}{col 31}{res}{space 2} .0012181{col 43}{space 2} .0022395{col 54}{space 1}    0.54{col 63}{space 3}0.587{col 71}{space 4}-.0031722{col 84}{space 3} .0056083
{txt}{space 21}2001#AS  {c |}{col 31}{res}{space 2}-.0749928{col 43}{space 2} .0064965{col 54}{space 1}  -11.54{col 63}{space 3}0.000{col 71}{space 4}-.0877282{col 84}{space 3}-.0622573
{txt}{space 21}2001#AU  {c |}{col 31}{res}{space 2}-.0273473{col 43}{space 2} .0047325{col 54}{space 1}   -5.78{col 63}{space 3}0.000{col 71}{space 4}-.0366246{col 84}{space 3}  -.01807
{txt}{space 21}2001#EU  {c |}{col 31}{res}{space 2} .1356043{col 43}{space 2} .0074011{col 54}{space 1}   18.32{col 63}{space 3}0.000{col 71}{space 4} .1210956{col 84}{space 3}  .150113
{txt}{space 21}2001#NA  {c |}{col 31}{res}{space 2} .0326813{col 43}{space 2} .0042907{col 54}{space 1}    7.62{col 63}{space 3}0.000{col 71}{space 4}   .02427{col 84}{space 3} .0410926
{txt}{space 21}2001#SA  {c |}{col 31}{res}{space 2}-.0901563{col 43}{space 2} .0120442{col 54}{space 1}   -7.49{col 63}{space 3}0.000{col 71}{space 4}-.1137672{col 84}{space 3}-.0665455
{txt}{space 21}2002#AF  {c |}{col 31}{res}{space 2} .0174738{col 43}{space 2} .0027235{col 54}{space 1}    6.42{col 63}{space 3}0.000{col 71}{space 4} .0121348{col 84}{space 3} .0228128
{txt}{space 21}2002#AS  {c |}{col 31}{res}{space 2}-.0505515{col 43}{space 2} .0050852{col 54}{space 1}   -9.94{col 63}{space 3}0.000{col 71}{space 4}-.0605203{col 84}{space 3}-.0405826
{txt}{space 21}2002#AU  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2002#EU  {c |}{col 31}{res}{space 2}  .138804{col 43}{space 2} .0107261{col 54}{space 1}   12.94{col 63}{space 3}0.000{col 71}{space 4} .1177771{col 84}{space 3} .1598309
{txt}{space 21}2002#NA  {c |}{col 31}{res}{space 2} .0271343{col 43}{space 2} .0046111{col 54}{space 1}    5.88{col 63}{space 3}0.000{col 71}{space 4} .0180949{col 84}{space 3} .0361738
{txt}{space 21}2002#SA  {c |}{col 31}{res}{space 2}-.0757469{col 43}{space 2}  .010457{col 54}{space 1}   -7.24{col 63}{space 3}0.000{col 71}{space 4}-.0962463{col 84}{space 3}-.0552475
{txt}{space 21}2003#AF  {c |}{col 31}{res}{space 2}-.0156819{col 43}{space 2} .0030447{col 54}{space 1}   -5.15{col 63}{space 3}0.000{col 71}{space 4}-.0216505{col 84}{space 3}-.0097133
{txt}{space 21}2003#AS  {c |}{col 31}{res}{space 2}-.1396334{col 43}{space 2} .0110337{col 54}{space 1}  -12.66{col 63}{space 3}0.000{col 71}{space 4}-.1612633{col 84}{space 3}-.1180036
{txt}{space 21}2003#AU  {c |}{col 31}{res}{space 2}-.0556654{col 43}{space 2} .0071296{col 54}{space 1}   -7.81{col 63}{space 3}0.000{col 71}{space 4} -.069642{col 84}{space 3}-.0416888
{txt}{space 21}2003#EU  {c |}{col 31}{res}{space 2}-.0294805{col 43}{space 2} .0037461{col 54}{space 1}   -7.87{col 63}{space 3}0.000{col 71}{space 4}-.0368242{col 84}{space 3}-.0221368
{txt}{space 21}2003#NA  {c |}{col 31}{res}{space 2}-.0943173{col 43}{space 2} .0048305{col 54}{space 1}  -19.53{col 63}{space 3}0.000{col 71}{space 4}-.1037867{col 84}{space 3}-.0848479
{txt}{space 21}2003#SA  {c |}{col 31}{res}{space 2}-.1117738{col 43}{space 2} .0155672{col 54}{space 1}   -7.18{col 63}{space 3}0.000{col 71}{space 4}-.1422911{col 84}{space 3}-.0812565
{txt}{space 21}2004#AF  {c |}{col 31}{res}{space 2}-.0088567{col 43}{space 2} .0024898{col 54}{space 1}   -3.56{col 63}{space 3}0.000{col 71}{space 4}-.0137375{col 84}{space 3}-.0039759
{txt}{space 21}2004#AS  {c |}{col 31}{res}{space 2}-.1153434{col 43}{space 2} .0102145{col 54}{space 1}  -11.29{col 63}{space 3}0.000{col 71}{space 4}-.1353675{col 84}{space 3}-.0953194
{txt}{space 21}2004#AU  {c |}{col 31}{res}{space 2}-.0566896{col 43}{space 2} .0077052{col 54}{space 1}   -7.36{col 63}{space 3}0.000{col 71}{space 4}-.0717945{col 84}{space 3}-.0415847
{txt}{space 21}2004#EU  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2004#NA  {c |}{col 31}{res}{space 2}-.0850001{col 43}{space 2} .0043504{col 54}{space 1}  -19.54{col 63}{space 3}0.000{col 71}{space 4}-.0935285{col 84}{space 3}-.0764718
{txt}{space 21}2004#SA  {c |}{col 31}{res}{space 2}-.1078509{col 43}{space 2} .0152566{col 54}{space 1}   -7.07{col 63}{space 3}0.000{col 71}{space 4}-.1377593{col 84}{space 3}-.0779425
{txt}{space 21}2005#AF  {c |}{col 31}{res}{space 2} .0030208{col 43}{space 2} .0029651{col 54}{space 1}    1.02{col 63}{space 3}0.308{col 71}{space 4}-.0027919{col 84}{space 3} .0088335
{txt}{space 21}2005#AS  {c |}{col 31}{res}{space 2}-.0943317{col 43}{space 2}   .00829{col 54}{space 1}  -11.38{col 63}{space 3}0.000{col 71}{space 4} -.110583{col 84}{space 3}-.0780804
{txt}{space 21}2005#AU  {c |}{col 31}{res}{space 2}-.0596596{col 43}{space 2} .0079755{col 54}{space 1}   -7.48{col 63}{space 3}0.000{col 71}{space 4}-.0752944{col 84}{space 3}-.0440249
{txt}{space 21}2005#EU  {c |}{col 31}{res}{space 2} .0655751{col 43}{space 2} .0064328{col 54}{space 1}   10.19{col 63}{space 3}0.000{col 71}{space 4} .0529645{col 84}{space 3} .0781857
{txt}{space 21}2005#NA  {c |}{col 31}{res}{space 2}-.0514751{col 43}{space 2} .0039843{col 54}{space 1}  -12.92{col 63}{space 3}0.000{col 71}{space 4}-.0592856{col 84}{space 3}-.0436646
{txt}{space 21}2005#SA  {c |}{col 31}{res}{space 2}-.0973604{col 43}{space 2} .0140331{col 54}{space 1}   -6.94{col 63}{space 3}0.000{col 71}{space 4}-.1248702{col 84}{space 3}-.0698506
{txt}{space 21}2006#AF  {c |}{col 31}{res}{space 2} .0065306{col 43}{space 2} .0036207{col 54}{space 1}    1.80{col 63}{space 3}0.071{col 71}{space 4}-.0005673{col 84}{space 3} .0136285
{txt}{space 21}2006#AS  {c |}{col 31}{res}{space 2}-.0921083{col 43}{space 2} .0078709{col 54}{space 1}  -11.70{col 63}{space 3}0.000{col 71}{space 4}-.1075382{col 84}{space 3}-.0766785
{txt}{space 21}2006#AU  {c |}{col 31}{res}{space 2}-.0554296{col 43}{space 2}  .006951{col 54}{space 1}   -7.97{col 63}{space 3}0.000{col 71}{space 4} -.069056{col 84}{space 3}-.0418033
{txt}{space 21}2006#EU  {c |}{col 31}{res}{space 2}-.0255207{col 43}{space 2} .0100708{col 54}{space 1}   -2.53{col 63}{space 3}0.011{col 71}{space 4} -.045263{col 84}{space 3}-.0057784
{txt}{space 21}2006#NA  {c |}{col 31}{res}{space 2}-.0923601{col 43}{space 2} .0060739{col 54}{space 1}  -15.21{col 63}{space 3}0.000{col 71}{space 4} -.104267{col 84}{space 3}-.0804532
{txt}{space 21}2006#SA  {c |}{col 31}{res}{space 2}-.0865734{col 43}{space 2}  .011981{col 54}{space 1}   -7.23{col 63}{space 3}0.000{col 71}{space 4}-.1100604{col 84}{space 3}-.0630864
{txt}{space 21}2007#AF  {c |}{col 31}{res}{space 2}  .024559{col 43}{space 2} .0049509{col 54}{space 1}    4.96{col 63}{space 3}0.000{col 71}{space 4} .0148535{col 84}{space 3} .0342645
{txt}{space 21}2007#AS  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2007#AU  {c |}{col 31}{res}{space 2}-.0257957{col 43}{space 2} .0055846{col 54}{space 1}   -4.62{col 63}{space 3}0.000{col 71}{space 4}-.0367434{col 84}{space 3}-.0148479
{txt}{space 21}2007#EU  {c |}{col 31}{res}{space 2} .1251153{col 43}{space 2} .0111668{col 54}{space 1}   11.20{col 63}{space 3}0.000{col 71}{space 4} .1032245{col 84}{space 3}  .147006
{txt}{space 21}2007#NA  {c |}{col 31}{res}{space 2} .0137438{col 43}{space 2} .0030876{col 54}{space 1}    4.45{col 63}{space 3}0.000{col 71}{space 4}  .007691{col 84}{space 3} .0197966
{txt}{space 21}2007#SA  {c |}{col 31}{res}{space 2}-.0695529{col 43}{space 2} .0096275{col 54}{space 1}   -7.22{col 63}{space 3}0.000{col 71}{space 4}-.0884261{col 84}{space 3}-.0506797
{txt}{space 21}2008#AF  {c |}{col 31}{res}{space 2} .0147408{col 43}{space 2} .0037613{col 54}{space 1}    3.92{col 63}{space 3}0.000{col 71}{space 4} .0073673{col 84}{space 3} .0221143
{txt}{space 21}2008#AS  {c |}{col 31}{res}{space 2}-.0329513{col 43}{space 2} .0039637{col 54}{space 1}   -8.31{col 63}{space 3}0.000{col 71}{space 4}-.0407216{col 84}{space 3} -.025181
{txt}{space 21}2008#AU  {c |}{col 31}{res}{space 2}-.0450963{col 43}{space 2} .0071328{col 54}{space 1}   -6.32{col 63}{space 3}0.000{col 71}{space 4}-.0590791{col 84}{space 3}-.0311134
{txt}{space 21}2008#EU  {c |}{col 31}{res}{space 2} .1115517{col 43}{space 2} .0093355{col 54}{space 1}   11.95{col 63}{space 3}0.000{col 71}{space 4} .0932507{col 84}{space 3} .1298526
{txt}{space 21}2008#NA  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2008#SA  {c |}{col 31}{res}{space 2}-.0708267{col 43}{space 2} .0097011{col 54}{space 1}   -7.30{col 63}{space 3}0.000{col 71}{space 4}-.0898443{col 84}{space 3}-.0518092
{txt}{space 21}2009#AF  {c |}{col 31}{res}{space 2} .0088582{col 43}{space 2} .0035201{col 54}{space 1}    2.52{col 63}{space 3}0.012{col 71}{space 4} .0019576{col 84}{space 3} .0157588
{txt}{space 21}2009#AS  {c |}{col 31}{res}{space 2}-.0878146{col 43}{space 2} .0082633{col 54}{space 1}  -10.63{col 63}{space 3}0.000{col 71}{space 4}-.1040135{col 84}{space 3}-.0716157
{txt}{space 21}2009#AU  {c |}{col 31}{res}{space 2}-.0609395{col 43}{space 2} .0082827{col 54}{space 1}   -7.36{col 63}{space 3}0.000{col 71}{space 4}-.0771766{col 84}{space 3}-.0447025
{txt}{space 21}2009#EU  {c |}{col 31}{res}{space 2} .0144431{col 43}{space 2} .0085382{col 54}{space 1}    1.69{col 63}{space 3}0.091{col 71}{space 4}-.0022947{col 84}{space 3} .0311809
{txt}{space 21}2009#NA  {c |}{col 31}{res}{space 2}-.0779103{col 43}{space 2} .0040122{col 54}{space 1}  -19.42{col 63}{space 3}0.000{col 71}{space 4}-.0857756{col 84}{space 3} -.070045
{txt}{space 21}2009#SA  {c |}{col 31}{res}{space 2}-.0760251{col 43}{space 2} .0109275{col 54}{space 1}   -6.96{col 63}{space 3}0.000{col 71}{space 4}-.0974468{col 84}{space 3}-.0546035
{txt}{space 21}2010#AF  {c |}{col 31}{res}{space 2} .0813085{col 43}{space 2} .0089888{col 54}{space 1}    9.05{col 63}{space 3}0.000{col 71}{space 4} .0636873{col 84}{space 3} .0989297
{txt}{space 21}2010#AS  {c |}{col 31}{res}{space 2} .0692329{col 43}{space 2} .0087208{col 54}{space 1}    7.94{col 63}{space 3}0.000{col 71}{space 4}  .052137{col 84}{space 3} .0863288
{txt}{space 21}2010#AU  {c |}{col 31}{res}{space 2} .0540628{col 43}{space 2}  .014703{col 54}{space 1}    3.68{col 63}{space 3}0.000{col 71}{space 4} .0252397{col 84}{space 3} .0828859
{txt}{space 21}2010#EU  {c |}{col 31}{res}{space 2} .3994751{col 43}{space 2} .0165424{col 54}{space 1}   24.15{col 63}{space 3}0.000{col 71}{space 4} .3670462{col 84}{space 3} .4319039
{txt}{space 21}2010#NA  {c |}{col 31}{res}{space 2} .1265142{col 43}{space 2} .0067794{col 54}{space 1}   18.66{col 63}{space 3}0.000{col 71}{space 4} .1132243{col 84}{space 3} .1398041
{txt}{space 21}2010#SA  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2011#AF  {c |}{col 31}{res}{space 2} .0506308{col 43}{space 2} .0063736{col 54}{space 1}    7.94{col 63}{space 3}0.000{col 71}{space 4} .0381364{col 84}{space 3} .0631252
{txt}{space 21}2011#AS  {c |}{col 31}{res}{space 2} .0221544{col 43}{space 2} .0057037{col 54}{space 1}    3.88{col 63}{space 3}0.000{col 71}{space 4} .0109732{col 84}{space 3} .0333355
{txt}{space 21}2011#AU  {c |}{col 31}{res}{space 2} .0168714{col 43}{space 2} .0070939{col 54}{space 1}    2.38{col 63}{space 3}0.017{col 71}{space 4} .0029649{col 84}{space 3} .0307778
{txt}{space 21}2011#EU  {c |}{col 31}{res}{space 2} .2288781{col 43}{space 2} .0111783{col 54}{space 1}   20.48{col 63}{space 3}0.000{col 71}{space 4} .2069647{col 84}{space 3} .2507915
{txt}{space 21}2011#NA  {c |}{col 31}{res}{space 2} .0229226{col 43}{space 2} .0043844{col 54}{space 1}    5.23{col 63}{space 3}0.000{col 71}{space 4} .0143276{col 84}{space 3} .0315175
{txt}{space 21}2011#SA  {c |}{col 31}{res}{space 2}-.0244903{col 43}{space 2} .0037165{col 54}{space 1}   -6.59{col 63}{space 3}0.000{col 71}{space 4}-.0317759{col 84}{space 3}-.0172047
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2} .5798885{col 43}{space 2} .0026207{col 54}{space 1}  221.27{col 63}{space 3}0.000{col 71}{space 4} .5747509{col 84}{space 3} .5850261
{txt}{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                      sigma_u {c |} {res} .88699669
                      {txt}sigma_e {c |} {res} .13410618
                          {txt}rho {c |} {res} .97765204{txt}   (fraction of variance due to u_i)
{hline 30}{c BT}{hline 64}

{com}. 
. quietly: calc_xb_ue
{txt}
{com}. 
. *dam-drought interactions
. foreach v in ifdam ifhydro pop {c -(}
{txt}  2{com}. sum esmdsi_`v', meanonly
{txt}  3{com}. sca esmdsi_`v'bar=r(mean)
{txt}  4{com}. {c )-}
{txt}
{com}. sum esmdsi, meanonly
{txt}
{com}. sca esmdsibar=r(mean)
{txt}
{com}. 
. *FIRST COEFF (esmdsi)
. 
. sca dam_intx_pop = _b[esmdsi_ifdam]*esmdsi_ifdambar + _b[esmdsi_ifhydro]*esmdsi_ifhydrobar + _b[esmdsi_pop]*esmdsi_popbar
{txt}
{com}. 
. sca contyr_temp_damintpop_cons_ue=dam_intx_pop+contyr_temp_cons_ue
{txt}
{com}. 
. di _b[esmdsi]
{res}-.01632059
{txt}
{com}. collect get beta=(_b[esmdsi]), tags(model[7] coeff[Drought])
{res}{txt}
{com}. collect, tag(model[7] coeff[Drought]): nlcom (sinh(_b[esmdsi]+contyr_temp_damintpop_cons_ue)/sinh(contyr_temp_damintpop_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi]+contyr_temp_damintpop_cons_ue)/sinh(contyr_temp_damintpop_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0296543{col 26}{space 2} .0036204{col 37}{space 1}   -8.19{col 46}{space 3}0.000{col 54}{space 4}-.0367501{col 67}{space 3}-.0225586
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi]+contyr_temp_damintpop_cons_ue)/sinh(contyr_temp_damintpop_cons_ue))-1)), tag(model[7] coeff[Drought])
{res}{txt}
{com}. 
. *SECOND COEFF (esmdsi*ifdam)
. 
. sca drought_hydro_pop = _b[esmdsi]*esmdsibar + _b[esmdsi_ifhydro]*esmdsi_ifhydrobar + _b[esmdsi_pop]*esmdsi_popbar
{txt}
{com}. sca contyr_temp_drthydpop_cons_ue=drought_hydro_pop+contyr_temp_cons_ue
{txt}
{com}. 
. di "_b[esmdsi_ifdam] is " _b[esmdsi_ifdam]
{res}_b[esmdsi_ifdam] is .01656808
{txt}
{com}. collect get beta=(_b[esmdsi_ifdam]), tags(model[7] coeff[Drought*dam])
{res}{txt}
{com}. collect, tag(model[7] coeff[Drought*dam]): nlcom (sinh(_b[esmdsi_ifdam]+contyr_temp_drthydpop_cons_ue)/sinh(contyr_temp_drthydpop_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi_ifdam]+contyr_temp_drthydpop_cons_ue)/sinh(contyr_temp_drthydpop_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0305161{col 26}{space 2} .0074198{col 37}{space 1}    4.11{col 46}{space 3}0.000{col 54}{space 4} .0159734{col 67}{space 3} .0450587
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi_ifdam]+contyr_temp_drthydpop_cons_ue)/sinh(contyr_temp_drthydpop_cons_ue))-1)), tag(model[7] coeff[Drought*dam])
{res}{txt}
{com}. 
. *THIRD COEFF (esmdsi*ifhydro)
. 
. sca drought_dam_pop = _b[esmdsi]*esmdsibar + _b[esmdsi_ifdam]*esmdsi_ifdambar + _b[esmdsi_pop]*esmdsi_popbar
{txt}
{com}. sca contyr_temp_drtdampop_cons_ue=drought_dam_pop+contyr_temp_cons_ue
{txt}
{com}. 
. di "_b[esmdsi_ifhydro] is " _b[esmdsi_ifhydro]
{res}_b[esmdsi_ifhydro] is -.01717512
{txt}
{com}. collect get beta=(_b[esmdsi_ifhydro]), tags(model[7] coeff[Hydro*drought])
{res}{txt}
{com}. collect, tag(model[7] coeff[Hydro*drought]): nlcom (sinh(_b[esmdsi_ifhydro]+contyr_temp_drtdampop_cons_ue)/sinh(contyr_temp_drtdampop_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi_ifhydro]+contyr_temp_drtdampop_cons_ue)/sinh(contyr_temp_drtdampop_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0312774{col 26}{space 2} .0099286{col 37}{space 1}   -3.15{col 46}{space 3}0.002{col 54}{space 4}-.0507372{col 67}{space 3}-.0118176
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi_ifhydro]+contyr_temp_drtdampop_cons_ue)/sinh(contyr_temp_drtdampop_cons_ue))-1)), tag(model[7] coeff[Hydro*drought])
{res}{txt}
{com}. 
. *Table 4, column 4 model 
. 
. xtreg ihslights esmdsi esmdsi_ifdam esmdsi_rescap esmdsi_ifhydro esmdsi_rescap esmdsi_rescaphydro c.dev_tmp##c.dev_tmp##c.dev_tmp i.year#i.continent if flare==0, fe vce(cluster conpfaf4)
{txt}note: {bf:esmdsi_rescap} omitted because of collinearity.
{res}{txt}{p 0 6 2}note: {bf:2007.year#2.continent} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2006.year#5.continent} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2010.year#4.continent} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2010.year#6.continent} omitted because of collinearity with the absorbed variable.{p_end}
{txt}{p 0 6 2}note: {bf:2002.year#3.continent} omitted because of collinearity with the absorbed variable.{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}   447,828
{txt}Group variable: {res}cellid{txt}{col 49}Number of groups{col 67}={col 69}{res}    37,319

{txt}R-squared:{col 49}Obs per group:
     Within  = {res}0.2191{col 63}{txt}min{col 67}={col 69}{res}        12
{txt}     Between = {res}0.0329{col 63}{txt}avg{col 67}={col 69}{res}      12.0
{txt}     Overall = {res}0.0144{col 63}{txt}max{col 67}={col 69}{res}        12

{txt}{col 49}F({res}74{txt}, {res}6127{txt}){col 67}={col 70}{res}    35.54
{txt}corr(u_i, Xb) = {res}-0.2664{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 95:(Std. err. adjusted for {res:6,128} clusters in {res:conpfaf4})}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                    ihslights{col 31}{c |} Coefficient{col 43}  std. err.{col 55}      t{col 63}   P>|t|{col 71}     [95% con{col 84}f. interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}esmdsi {c |}{col 31}{res}{space 2}-.0152253{col 43}{space 2} .0019116{col 54}{space 1}   -7.96{col 63}{space 3}0.000{col 71}{space 4}-.0189727{col 84}{space 3}-.0114778
{txt}{space 17}esmdsi_ifdam {c |}{col 31}{res}{space 2} .0183774{col 43}{space 2} .0040794{col 54}{space 1}    4.50{col 63}{space 3}0.000{col 71}{space 4} .0103804{col 84}{space 3} .0263743
{txt}{space 16}esmdsi_rescap {c |}{col 31}{res}{space 2} -.000123{col 43}{space 2} .0002855{col 54}{space 1}   -0.43{col 63}{space 3}0.667{col 71}{space 4}-.0006826{col 84}{space 3} .0004367
{txt}{space 15}esmdsi_ifhydro {c |}{col 31}{res}{space 2}-.0195269{col 43}{space 2} .0060132{col 54}{space 1}   -3.25{col 63}{space 3}0.001{col 71}{space 4}-.0313149{col 84}{space 3}-.0077388
{txt}{space 16}esmdsi_rescap {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 11}esmdsi_rescaphydro {c |}{col 31}{res}{space 2} .0002664{col 43}{space 2}  .000317{col 54}{space 1}    0.84{col 63}{space 3}0.401{col 71}{space 4}-.0003551{col 84}{space 3} .0008879
{txt}{space 22}dev_tmp {c |}{col 31}{res}{space 2}-.0116573{col 43}{space 2} .0021521{col 54}{space 1}   -5.42{col 63}{space 3}0.000{col 71}{space 4}-.0158763{col 84}{space 3}-.0074384
{txt}{space 29} {c |}
{space 10}c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0114265{col 43}{space 2} .0021572{col 54}{space 1}   -5.30{col 63}{space 3}0.000{col 71}{space 4}-.0156553{col 84}{space 3}-.0071978
{txt}{space 29} {c |}
c.dev_tmp#c.dev_tmp#c.dev_tmp {c |}{col 31}{res}{space 2}-.0036849{col 43}{space 2} .0016518{col 54}{space 1}   -2.23{col 63}{space 3}0.026{col 71}{space 4} -.006923{col 84}{space 3}-.0004469
{txt}{space 29} {c |}
{space 15}year#continent {c |}
{space 21}2000#AS  {c |}{col 31}{res}{space 2}-.0753229{col 43}{space 2} .0066598{col 54}{space 1}  -11.31{col 63}{space 3}0.000{col 71}{space 4}-.0883784{col 84}{space 3}-.0622675
{txt}{space 21}2000#AU  {c |}{col 31}{res}{space 2}-.0380838{col 43}{space 2} .0065987{col 54}{space 1}   -5.77{col 63}{space 3}0.000{col 71}{space 4}-.0510196{col 84}{space 3} -.025148
{txt}{space 21}2000#EU  {c |}{col 31}{res}{space 2}-.2540669{col 43}{space 2} .0135946{col 54}{space 1}  -18.69{col 63}{space 3}0.000{col 71}{space 4}-.2807171{col 84}{space 3}-.2274167
{txt}{space 21}2000#NA  {c |}{col 31}{res}{space 2}  .140108{col 43}{space 2} .0076514{col 54}{space 1}   18.31{col 63}{space 3}0.000{col 71}{space 4} .1251086{col 84}{space 3} .1551074
{txt}{space 21}2000#SA  {c |}{col 31}{res}{space 2}-.0839917{col 43}{space 2} .0110995{col 54}{space 1}   -7.57{col 63}{space 3}0.000{col 71}{space 4}-.1057506{col 84}{space 3}-.0622328
{txt}{space 21}2001#AF  {c |}{col 31}{res}{space 2} .0011137{col 43}{space 2} .0022384{col 54}{space 1}    0.50{col 63}{space 3}0.619{col 71}{space 4}-.0032743{col 84}{space 3} .0055017
{txt}{space 21}2001#AS  {c |}{col 31}{res}{space 2}-.0747104{col 43}{space 2} .0065329{col 54}{space 1}  -11.44{col 63}{space 3}0.000{col 71}{space 4}-.0875172{col 84}{space 3}-.0619036
{txt}{space 21}2001#AU  {c |}{col 31}{res}{space 2}-.0279965{col 43}{space 2} .0047459{col 54}{space 1}   -5.90{col 63}{space 3}0.000{col 71}{space 4}-.0373002{col 84}{space 3}-.0186929
{txt}{space 21}2001#EU  {c |}{col 31}{res}{space 2}-.2638413{col 43}{space 2} .0157354{col 54}{space 1}  -16.77{col 63}{space 3}0.000{col 71}{space 4}-.2946882{col 84}{space 3}-.2329944
{txt}{space 21}2001#NA  {c |}{col 31}{res}{space 2} .1250871{col 43}{space 2} .0073545{col 54}{space 1}   17.01{col 63}{space 3}0.000{col 71}{space 4} .1106697{col 84}{space 3} .1395046
{txt}{space 21}2001#SA  {c |}{col 31}{res}{space 2}-.0897453{col 43}{space 2} .0121135{col 54}{space 1}   -7.41{col 63}{space 3}0.000{col 71}{space 4}-.1134921{col 84}{space 3}-.0659985
{txt}{space 21}2002#AF  {c |}{col 31}{res}{space 2} .0172463{col 43}{space 2} .0027244{col 54}{space 1}    6.33{col 63}{space 3}0.000{col 71}{space 4} .0119056{col 84}{space 3} .0225871
{txt}{space 21}2002#AS  {c |}{col 31}{res}{space 2}-.0500323{col 43}{space 2}  .005058{col 54}{space 1}   -9.89{col 63}{space 3}0.000{col 71}{space 4}-.0599478{col 84}{space 3}-.0401169
{txt}{space 21}2002#AU  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2002#EU  {c |}{col 31}{res}{space 2} -.260769{col 43}{space 2} .0174846{col 54}{space 1}  -14.91{col 63}{space 3}0.000{col 71}{space 4}-.2950449{col 84}{space 3} -.226493
{txt}{space 21}2002#NA  {c |}{col 31}{res}{space 2} .1193776{col 43}{space 2} .0070271{col 54}{space 1}   16.99{col 63}{space 3}0.000{col 71}{space 4} .1056021{col 84}{space 3} .1331532
{txt}{space 21}2002#SA  {c |}{col 31}{res}{space 2}-.0754532{col 43}{space 2} .0105034{col 54}{space 1}   -7.18{col 63}{space 3}0.000{col 71}{space 4}-.0960436{col 84}{space 3}-.0548629
{txt}{space 21}2003#AF  {c |}{col 31}{res}{space 2} -.016018{col 43}{space 2} .0030195{col 54}{space 1}   -5.30{col 63}{space 3}0.000{col 71}{space 4}-.0219372{col 84}{space 3}-.0100987
{txt}{space 21}2003#AS  {c |}{col 31}{res}{space 2}-.1394733{col 43}{space 2} .0110631{col 54}{space 1}  -12.61{col 63}{space 3}0.000{col 71}{space 4}-.1611608{col 84}{space 3}-.1177858
{txt}{space 21}2003#AU  {c |}{col 31}{res}{space 2}-.0562118{col 43}{space 2}  .007298{col 54}{space 1}   -7.70{col 63}{space 3}0.000{col 71}{space 4}-.0705185{col 84}{space 3}-.0419051
{txt}{space 21}2003#EU  {c |}{col 31}{res}{space 2}-.4285897{col 43}{space 2}  .018023{col 54}{space 1}  -23.78{col 63}{space 3}0.000{col 71}{space 4} -.463921{col 84}{space 3}-.3932583
{txt}{space 21}2003#NA  {c |}{col 31}{res}{space 2}-.0019381{col 43}{space 2} .0042017{col 54}{space 1}   -0.46{col 63}{space 3}0.645{col 71}{space 4}-.0101749{col 84}{space 3} .0062986
{txt}{space 21}2003#SA  {c |}{col 31}{res}{space 2} -.111431{col 43}{space 2} .0156478{col 54}{space 1}   -7.12{col 63}{space 3}0.000{col 71}{space 4}-.1421062{col 84}{space 3}-.0807557
{txt}{space 21}2004#AF  {c |}{col 31}{res}{space 2}-.0089619{col 43}{space 2} .0024892{col 54}{space 1}   -3.60{col 63}{space 3}0.000{col 71}{space 4}-.0138417{col 84}{space 3}-.0040822
{txt}{space 21}2004#AS  {c |}{col 31}{res}{space 2}-.1150937{col 43}{space 2} .0102257{col 54}{space 1}  -11.26{col 63}{space 3}0.000{col 71}{space 4}-.1351396{col 84}{space 3}-.0950478
{txt}{space 21}2004#AU  {c |}{col 31}{res}{space 2}-.0572254{col 43}{space 2} .0078771{col 54}{space 1}   -7.26{col 63}{space 3}0.000{col 71}{space 4}-.0726672{col 84}{space 3}-.0417835
{txt}{space 21}2004#EU  {c |}{col 31}{res}{space 2}-.3994151{col 43}{space 2} .0165576{col 54}{space 1}  -24.12{col 63}{space 3}0.000{col 71}{space 4}-.4318739{col 84}{space 3}-.3669564
{txt}{space 21}2004#NA  {c |}{col 31}{res}{space 2} .0074656{col 43}{space 2} .0043889{col 54}{space 1}    1.70{col 63}{space 3}0.089{col 71}{space 4}-.0011383{col 84}{space 3} .0160694
{txt}{space 21}2004#SA  {c |}{col 31}{res}{space 2}-.1074859{col 43}{space 2} .0152949{col 54}{space 1}   -7.03{col 63}{space 3}0.000{col 71}{space 4}-.1374692{col 84}{space 3}-.0775025
{txt}{space 21}2005#AF  {c |}{col 31}{res}{space 2} .0027842{col 43}{space 2} .0029577{col 54}{space 1}    0.94{col 63}{space 3}0.347{col 71}{space 4} -.003014{col 84}{space 3} .0085824
{txt}{space 21}2005#AS  {c |}{col 31}{res}{space 2} -.094119{col 43}{space 2} .0082962{col 54}{space 1}  -11.34{col 63}{space 3}0.000{col 71}{space 4}-.1103825{col 84}{space 3}-.0778555
{txt}{space 21}2005#AU  {c |}{col 31}{res}{space 2} -.059838{col 43}{space 2} .0081265{col 54}{space 1}   -7.36{col 63}{space 3}0.000{col 71}{space 4}-.0757689{col 84}{space 3}-.0439072
{txt}{space 21}2005#EU  {c |}{col 31}{res}{space 2}-.3337375{col 43}{space 2}  .014161{col 54}{space 1}  -23.57{col 63}{space 3}0.000{col 71}{space 4}-.3614981{col 84}{space 3}-.3059769
{txt}{space 21}2005#NA  {c |}{col 31}{res}{space 2}  .041044{col 43}{space 2} .0046492{col 54}{space 1}    8.83{col 63}{space 3}0.000{col 71}{space 4}   .03193{col 84}{space 3} .0501581
{txt}{space 21}2005#SA  {c |}{col 31}{res}{space 2}-.0972251{col 43}{space 2} .0140725{col 54}{space 1}   -6.91{col 63}{space 3}0.000{col 71}{space 4}-.1248122{col 84}{space 3}-.0696381
{txt}{space 21}2006#AF  {c |}{col 31}{res}{space 2} .0064841{col 43}{space 2} .0036153{col 54}{space 1}    1.79{col 63}{space 3}0.073{col 71}{space 4}-.0006031{col 84}{space 3} .0135714
{txt}{space 21}2006#AS  {c |}{col 31}{res}{space 2}-.0919935{col 43}{space 2} .0078749{col 54}{space 1}  -11.68{col 63}{space 3}0.000{col 71}{space 4} -.107431{col 84}{space 3}-.0765559
{txt}{space 21}2006#AU  {c |}{col 31}{res}{space 2}-.0556357{col 43}{space 2} .0069884{col 54}{space 1}   -7.96{col 63}{space 3}0.000{col 71}{space 4}-.0693354{col 84}{space 3} -.041936
{txt}{space 21}2006#EU  {c |}{col 31}{res}{space 2}-.4249039{col 43}{space 2} .0197631{col 54}{space 1}  -21.50{col 63}{space 3}0.000{col 71}{space 4}-.4636466{col 84}{space 3}-.3861613
{txt}{space 21}2006#NA  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2006#SA  {c |}{col 31}{res}{space 2}-.0862873{col 43}{space 2} .0120157{col 54}{space 1}   -7.18{col 63}{space 3}0.000{col 71}{space 4}-.1098422{col 84}{space 3}-.0627324
{txt}{space 21}2007#AF  {c |}{col 31}{res}{space 2} .0243955{col 43}{space 2} .0049506{col 54}{space 1}    4.93{col 63}{space 3}0.000{col 71}{space 4} .0146907{col 84}{space 3} .0341004
{txt}{space 21}2007#AS  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2007#AU  {c |}{col 31}{res}{space 2}-.0263718{col 43}{space 2} .0057514{col 54}{space 1}   -4.59{col 63}{space 3}0.000{col 71}{space 4}-.0376465{col 84}{space 3}-.0150971
{txt}{space 21}2007#EU  {c |}{col 31}{res}{space 2}-.2742486{col 43}{space 2} .0145003{col 54}{space 1}  -18.91{col 63}{space 3}0.000{col 71}{space 4}-.3026742{col 84}{space 3} -.245823
{txt}{space 21}2007#NA  {c |}{col 31}{res}{space 2} .1061629{col 43}{space 2}  .005691{col 54}{space 1}   18.65{col 63}{space 3}0.000{col 71}{space 4} .0950065{col 84}{space 3} .1173194
{txt}{space 21}2007#SA  {c |}{col 31}{res}{space 2}-.0693437{col 43}{space 2} .0096901{col 54}{space 1}   -7.16{col 63}{space 3}0.000{col 71}{space 4}-.0883397{col 84}{space 3}-.0503478
{txt}{space 21}2008#AF  {c |}{col 31}{res}{space 2} .0146945{col 43}{space 2} .0037523{col 54}{space 1}    3.92{col 63}{space 3}0.000{col 71}{space 4} .0073386{col 84}{space 3} .0220504
{txt}{space 21}2008#AS  {c |}{col 31}{res}{space 2}-.0331046{col 43}{space 2} .0039368{col 54}{space 1}   -8.41{col 63}{space 3}0.000{col 71}{space 4}-.0408221{col 84}{space 3}-.0253872
{txt}{space 21}2008#AU  {c |}{col 31}{res}{space 2}-.0457582{col 43}{space 2} .0072775{col 54}{space 1}   -6.29{col 63}{space 3}0.000{col 71}{space 4}-.0600246{col 84}{space 3}-.0314918
{txt}{space 21}2008#EU  {c |}{col 31}{res}{space 2}-.2879148{col 43}{space 2} .0142816{col 54}{space 1}  -20.16{col 63}{space 3}0.000{col 71}{space 4}-.3159117{col 84}{space 3}-.2599179
{txt}{space 21}2008#NA  {c |}{col 31}{res}{space 2} .0925005{col 43}{space 2} .0060738{col 54}{space 1}   15.23{col 63}{space 3}0.000{col 71}{space 4} .0805938{col 84}{space 3} .1044072
{txt}{space 21}2008#SA  {c |}{col 31}{res}{space 2}-.0704752{col 43}{space 2} .0097673{col 54}{space 1}   -7.22{col 63}{space 3}0.000{col 71}{space 4}-.0896225{col 84}{space 3}-.0513279
{txt}{space 21}2009#AF  {c |}{col 31}{res}{space 2} .0088219{col 43}{space 2} .0035123{col 54}{space 1}    2.51{col 63}{space 3}0.012{col 71}{space 4} .0019365{col 84}{space 3} .0157072
{txt}{space 21}2009#AS  {c |}{col 31}{res}{space 2}-.0874603{col 43}{space 2} .0081425{col 54}{space 1}  -10.74{col 63}{space 3}0.000{col 71}{space 4}-.1034224{col 84}{space 3}-.0714983
{txt}{space 21}2009#AU  {c |}{col 31}{res}{space 2}-.0615246{col 43}{space 2} .0082842{col 54}{space 1}   -7.43{col 63}{space 3}0.000{col 71}{space 4}-.0777647{col 84}{space 3}-.0452846
{txt}{space 21}2009#EU  {c |}{col 31}{res}{space 2}-.3850269{col 43}{space 2} .0158403{col 54}{space 1}  -24.31{col 63}{space 3}0.000{col 71}{space 4}-.4160794{col 84}{space 3}-.3539743
{txt}{space 21}2009#NA  {c |}{col 31}{res}{space 2} .0145113{col 43}{space 2} .0049713{col 54}{space 1}    2.92{col 63}{space 3}0.004{col 71}{space 4} .0047659{col 84}{space 3} .0242567
{txt}{space 21}2009#SA  {c |}{col 31}{res}{space 2} -.075836{col 43}{space 2} .0109952{col 54}{space 1}   -6.90{col 63}{space 3}0.000{col 71}{space 4}-.0973905{col 84}{space 3}-.0542815
{txt}{space 21}2010#AF  {c |}{col 31}{res}{space 2} .0812129{col 43}{space 2} .0089687{col 54}{space 1}    9.06{col 63}{space 3}0.000{col 71}{space 4}  .063631{col 84}{space 3} .0987948
{txt}{space 21}2010#AS  {c |}{col 31}{res}{space 2} .0692872{col 43}{space 2} .0086998{col 54}{space 1}    7.96{col 63}{space 3}0.000{col 71}{space 4} .0522324{col 84}{space 3} .0863419
{txt}{space 21}2010#AU  {c |}{col 31}{res}{space 2} .0536339{col 43}{space 2} .0148693{col 54}{space 1}    3.61{col 63}{space 3}0.000{col 71}{space 4} .0244848{col 84}{space 3} .0827829
{txt}{space 21}2010#EU  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2010#NA  {c |}{col 31}{res}{space 2} .2188761{col 43}{space 2} .0095228{col 54}{space 1}   22.98{col 63}{space 3}0.000{col 71}{space 4} .2002082{col 84}{space 3} .2375441
{txt}{space 21}2010#SA  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 21}2011#AF  {c |}{col 31}{res}{space 2} .0505235{col 43}{space 2} .0063511{col 54}{space 1}    7.96{col 63}{space 3}0.000{col 71}{space 4} .0380732{col 84}{space 3} .0629738
{txt}{space 21}2011#AS  {c |}{col 31}{res}{space 2} .0221182{col 43}{space 2} .0056449{col 54}{space 1}    3.92{col 63}{space 3}0.000{col 71}{space 4} .0110522{col 84}{space 3} .0331842
{txt}{space 21}2011#AU  {c |}{col 31}{res}{space 2} .0162027{col 43}{space 2} .0070599{col 54}{space 1}    2.30{col 63}{space 3}0.022{col 71}{space 4} .0023628{col 84}{space 3} .0300426
{txt}{space 21}2011#EU  {c |}{col 31}{res}{space 2}-.1705389{col 43}{space 2} .0112087{col 54}{space 1}  -15.21{col 63}{space 3}0.000{col 71}{space 4}-.1925119{col 84}{space 3} -.148566
{txt}{space 21}2011#NA  {c |}{col 31}{res}{space 2} .1152168{col 43}{space 2} .0064107{col 54}{space 1}   17.97{col 63}{space 3}0.000{col 71}{space 4} .1026496{col 84}{space 3}  .127784
{txt}{space 21}2011#SA  {c |}{col 31}{res}{space 2}  -.02407{col 43}{space 2} .0037728{col 54}{space 1}   -6.38{col 63}{space 3}0.000{col 71}{space 4} -.031466{col 84}{space 3} -.016674
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2} .6412557{col 43}{space 2} .0036665{col 54}{space 1}  174.90{col 63}{space 3}0.000{col 71}{space 4} .6340682{col 84}{space 3} .6484433
{txt}{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                      sigma_u {c |} {res} .93324055
                      {txt}sigma_e {c |} {res} .13411077
                          {txt}rho {c |} {res} .97976688{txt}   (fraction of variance due to u_i)
{hline 30}{c BT}{hline 64}

{com}. 
. *dam-drought interaction means
. foreach v in ifdam ifhydro rescap rescaphydro  {c -(}
{txt}  2{com}. sum esmdsi_`v', meanonly
{txt}  3{com}. sca esmdsi_`v'bar=r(mean)
{txt}  4{com}. {c )-}
{txt}
{com}. sum esmdsi, meanonly
{txt}
{com}. sca esmdsibar=r(mean)
{txt}
{com}. 
. *FIRST COEFF (esmdsi)
. sca dam_intx_rescap = _b[esmdsi_ifdam]*esmdsi_ifdambar + _b[esmdsi_ifhydro]*esmdsi_ifhydrobar + _b[esmdsi_rescap]*esmdsi_rescapbar + _b[esmdsi_rescaphydro]*esmdsi_rescaphydrobar
{txt}
{com}. 
. sca contyr_temp_damintres_cons_ue=dam_intx_rescap+contyr_temp_cons_ue
{txt}
{com}. 
. di _b[esmdsi]
{res}-.01522527
{txt}
{com}. collect get beta=(_b[esmdsi]), tags(model[8] coeff[Drought])
{res}{txt}
{com}. collect, tag(model[8] coeff[Drought]): nlcom (sinh(_b[esmdsi]+contyr_temp_damintres_cons_ue)/sinh(contyr_temp_damintres_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi]+contyr_temp_damintres_cons_ue)/sinh(contyr_temp_damintres_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} -.027678{col 26}{space 2} .0034608{col 37}{space 1}   -8.00{col 46}{space 3}0.000{col 54}{space 4}-.0344612{col 67}{space 3}-.0208949
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi]+contyr_temp_damintres_cons_ue)/sinh(contyr_temp_damintres_cons_ue))-1)), tag(model[8] coeff[Drought])
{res}{txt}
{com}. 
. *SECOND COEFF (esmdsi*ifdam)
. sca drought_hydro_rescap = _b[esmdsi]*esmdsibar + _b[esmdsi_ifhydro]*esmdsi_ifhydrobar + _b[esmdsi_rescap]*esmdsi_rescapbar + _b[esmdsi_rescaphydro]*esmdsi_rescaphydrobar
{txt}
{com}. sca contyr_temp_drthydpres_cons_ue=drought_hydro_rescap+contyr_temp_cons_ue
{txt}
{com}. collect get beta=(_b[esmdsi_ifdam]), tags(model[8] coeff[Drought*dam])
{res}{txt}
{com}. collect, tag(model[8] coeff[Drought*dam]): nlcom (sinh(_b[esmdsi_ifdam]+contyr_temp_drthydpres_cons_ue)/sinh(contyr_temp_drthydpres_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi_ifdam]+contyr_temp_drthydpres_cons_ue)/sinh(contyr_temp_drthydpres_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0338704{col 26}{space 2} .0075568{col 37}{space 1}    4.48{col 46}{space 3}0.000{col 54}{space 4} .0190594{col 67}{space 3} .0486815
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi_ifdam]+contyr_temp_drthydpres_cons_ue)/sinh(contyr_temp_drthydpres_cons_ue))-1)), tag(model[8] coeff[Drought*dam])
{res}{txt}
{com}. 
. 
. *THIRD COEFF (esmdsi*ifhydro)
. 
. sca drought_dam_res = _b[esmdsi]*esmdsibar + _b[esmdsi_ifdam]*esmdsi_ifdambar + _b[esmdsi_rescap]*esmdsi_rescapbar + _b[esmdsi_rescaphydro]*esmdsi_rescaphydrobar
{txt}
{com}. sca contyr_temp_drtdamres_cons_ue=drought_dam_res+contyr_temp_cons_ue
{txt}
{com}. 
. collect get beta=(_b[esmdsi_ifhydro]), tags(model[8] coeff[Hydro*drought])
{res}{txt}
{com}. collect, tag(model[8] coeff[Hydro*drought]): nlcom (sinh(_b[esmdsi_ifhydro]+contyr_temp_drtdamres_cons_ue)/sinh(contyr_temp_drtdamres_cons_ue))-1
{res}
       {txt}_nl_1: {res}(sinh(_b[esmdsi_ifhydro]+contyr_temp_drtdamres_cons_ue)/sinh(contyr_temp_drtdamres_cons_ue))-1

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   ihslights{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} -.035534{col 26}{space 2} .0108852{col 37}{space 1}   -3.26{col 46}{space 3}0.001{col 54}{space 4}-.0568687{col 67}{space 3}-.0141993
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Coefficient}" for level {bf:_r_b} of dimension {bf:result}.
{p_end}

{com}. collect get gdp=(.3* ((sinh(_b[esmdsi_ifhydro]+contyr_temp_drtdamres_cons_ue)/sinh(contyr_temp_drtdamres_cons_ue))-1)), tag(model[8] coeff[Hydro*drought])
{res}{txt}
{com}. 
.  
. 
. collect label levels model 1 "Table 1 (DSI)" 2 "Table 1 (sc_PDSI)" 4 "Table 2, col. 2 (GW)" 5 "Table 4 (dams), col 1" 6 "Table 4, col 2" 7 "Table 4 col 3" 8 "Table 4 col 4"
{res}{p 0 6 6}
{txt}Note: {bf:collect} is ignoring label "{bf:Table 1 (DSI)}" for level {bf:1} of dimension {bf:model}.
{p_end}
{p 0 6 6}
Note: {bf:collect} is ignoring label "{bf:Table 1 (sc_PDSI)}" for level {bf:2} of dimension {bf:model}.
{p_end}

{com}. collect label levels result _r_b "Marginal effect", modify
{res}{txt}
{com}. collect label levels result beta "Coefficient", modify
{res}{txt}
{com}. collect style cell result[_r_b], nformat(%6.4f) halign(center)
{res}{txt}
{com}. collect style cell result[_r_se], sformat((%s)) nformat(%6.4f)
{res}{txt}
{com}. collect style cell result[beta], nformat(%6.4f) halign(center)
{res}{txt}
{com}. collect style cell result[gdp], nformat(%6.4f) halign(center)
{res}{txt}
{com}. collect stars _r_p 0.01 "**" 0.05 "*" 0.1 "+", attach(_r_b)
{res}{txt}
{com}. collect layout (model#coeff) (result[beta] result[_r_b _r_se] result[gdp])
{res}
{txt}{p 0 12 2}
Collection: {res:default}
{p_end}
{p 0 12 2}
{space 6}Rows: {res:model#coeff}
{p_end}
{p 0 12 2}
{space 3}Columns: {res:result[beta] result[_r_b _r_se] result[gdp]}
{p_end}
{p 0 12 2}
{space 3}Table 1: {res:22 x 4}
{p_end}

{res}{smcl}
{reset}{...}
{hline 21}{c -}{c TT}{c -}{hline 11}{c -}{hline 15}{c -}{hline 10}{c -}{hline 23}
{space 21} {c |} Coefficient Marginal effect Std. error Predicted effect on GDP
{hline 21}{c -}{c +}{c -}{hline 11}{c -}{hline 15}{c -}{hline 10}{c -}{hline 23}
DSI{space 18} {c |} {space 11} {space 15} {space 10} {space 23}
  Drought{space 12} {c |} {space 2}{result:-0.0110}{space 2} {space 3}{result:-0.0202**}{space 3} {space 2}{result:(0.0030)} {space 8}{result:-0.0061}{space 8}
sc-PDSI{space 14} {c |} {space 11} {space 15} {space 10} {space 23}
  Drought{space 12} {c |} {space 2}{result:-0.0085}{space 2} {space 3}{result:-0.0161**}{space 3} {space 2}{result:(0.0031)} {space 8}{result:-0.0048}{space 8}
Table 2, col. 2 (GW){space 1} {c |} {space 11} {space 15} {space 10} {space 23}
  Drought{space 12} {c |} {space 2}{result:-0.0132}{space 2} {space 3}{result:-0.0241**}{space 3} {space 2}{result:(0.0061)} {space 8}{result:-0.0072}{space 8}
  Drought*alluv{space 6} {c |} {space 3}{result:0.0115}{space 2} {space 4}{result:0.0212*}{space 4} {space 2}{result:(0.0093)} {space 9}{result:0.0064}{space 8}
Table 4 (dams), col 1 {c |} {space 11} {space 15} {space 10} {space 23}
  Drought{space 12} {c |} {space 2}{result:-0.0153}{space 2} {space 3}{result:-0.0280**}{space 3} {space 2}{result:(0.0035)} {space 8}{result:-0.0084}{space 8}
  Drought*dam{space 8} {c |} {space 3}{result:0.0093}{space 2} {space 4}{result:0.0172**}{space 3} {space 2}{result:(0.0061)} {space 9}{result:0.0052}{space 8}
Table 4, col 2{space 7} {c |} {space 11} {space 15} {space 10} {space 23}
  Drought{space 12} {c |} {space 2}{result:-0.0152}{space 2} {space 3}{result:-0.0277**}{space 3} {space 2}{result:(0.0035)} {space 8}{result:-0.0083}{space 8}
  Drought*dam{space 8} {c |} {space 3}{result:0.0179}{space 2} {space 4}{result:0.0330**}{space 3} {space 2}{result:(0.0078)} {space 9}{result:0.0099}{space 8}
  Hydro*drought{space 6} {c |} {space 2}{result:-0.0175}{space 2} {space 3}{result:-0.0318**}{space 3} {space 2}{result:(0.0100)} {space 8}{result:-0.0095}{space 8}
Table 4 col 3{space 8} {c |} {space 11} {space 15} {space 10} {space 23}
  Drought{space 12} {c |} {space 2}{result:-0.0163}{space 2} {space 3}{result:-0.0297**}{space 3} {space 2}{result:(0.0036)} {space 8}{result:-0.0089}{space 8}
  Drought*dam{space 8} {c |} {space 3}{result:0.0166}{space 2} {space 4}{result:0.0305**}{space 3} {space 2}{result:(0.0074)} {space 9}{result:0.0092}{space 8}
  Hydro*drought{space 6} {c |} {space 2}{result:-0.0172}{space 2} {space 3}{result:-0.0313**}{space 3} {space 2}{result:(0.0099)} {space 8}{result:-0.0094}{space 8}
Table 4 col 4{space 8} {c |} {space 11} {space 15} {space 10} {space 23}
  Drought{space 12} {c |} {space 2}{result:-0.0152}{space 2} {space 3}{result:-0.0277**}{space 3} {space 2}{result:(0.0035)} {space 8}{result:-0.0083}{space 8}
  Drought*dam{space 8} {c |} {space 3}{result:0.0184}{space 2} {space 4}{result:0.0339**}{space 3} {space 2}{result:(0.0076)} {space 9}{result:0.0102}{space 8}
  Hydro*drought{space 6} {c |} {space 2}{result:-0.0195}{space 2} {space 3}{result:-0.0355**}{space 3} {space 2}{result:(0.0109)} {space 8}{result:-0.0107}{space 8}
{hline 21}{c -}{c BT}{c -}{hline 11}{c -}{hline 15}{c -}{hline 10}{c -}{hline 23}

{com}. collect style putdocx, layout(autofitcontents) title(Marginal effects estimates at mean) 
{res}{txt}
{com}. 
. putdocx begin
{res}{txt}
{com}. putdocx collect
{res}{txt}{p 0 1 2}
(collection {res:default} posted to {bf:putdocx})
{p_end}

{com}. 
. putdocx save "../output/tableF1_mfx.docx", replace
{res}successfully replaced {browse "C:/Users/hilar/Box/lights_2022/replication package/output/tableF1_mfx.docx":"C:/Users/hilar/Box/lights_2022/replication package/output/tableF1_mfx.docx"}
{txt}
{com}. 
. 
. 
. 
. collect clear
{res}{txt}
{com}. putdocx clear
{res}{txt}
{com}. 
. timer off 1
{txt}
{com}. timer list 1
{res}   1:     70.42 /        1 =      70.4210
{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\hilar\Box\lights_2022\replication package\code\reg_mfx.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}24 Dec 2025, 16:51:08
{txt}{.-}
{smcl}
{txt}{sf}{ul off}